export interface RepairOptions {
    safeMode?: boolean;
    extractJson?: boolean;
    encodeAscii?: boolean;
    returnObject?: boolean;
    logging?: boolean;
}
/**
 * Attempts to extract a valid JSON block (between braces or brackets) from a string
 */
export declare function extractJsonFromText(input: string): string;
/**
 * Repairs a potentially incorrect JSON string by applying various
 * transformations (extraction, removal of trailing commas, quoting, etc.).
 * Returns either a JSON string (default) or a JS object (if `returnObject` is true).
 */
export declare function repairJson(input: string, options?: RepairOptions): unknown;
