declare type Inspect = (obj: Record<string, unknown>, options: {
    colors?: boolean;
    compact?: boolean;
}) => string;
export declare function toObject(args: {
    text: string;
    inspect: Inspect;
    header?: string;
}): Promise<{
    object: {};
    toString(args?: {
        const?: string | undefined;
        export?: boolean | undefined;
        header?: string | undefined;
    }): string;
}>;
export {};
