/**
 * JSON parsing utilities extracted from AI Agent for reusability and testing
 */
/**
 * Unwraps JSON that was incorrectly formatted in JSON Schema style.
 * Handles cases where the AI output {"type": "object", "properties": {actual data}}
 * instead of just {actual data}.
 *
 * @param parsed - The parsed JSON object to check and potentially unwrap
 * @returns The unwrapped data if it was schema-style, otherwise the original parsed object
 */
export declare function unwrapSchemaStyleResponse(parsed: unknown): unknown;
/**
 * Extract JSON from mixed text/JSON responses with robust cleanup
 */
export declare function extractAndCleanJSON(input: string): string | null;
/**
 * Post-process potentially malformed JSON string to fix common issues
 */
export declare function postProcessJSON(jsonString: string): string;
/**
 * Multi-stage JSON parsing approach with various fallback strategies
 */
export declare function parseJsonWithFallbacks(finalResponse: string): {
    response: string;
    parsed: object | null;
    success: boolean;
    error?: string;
};
//# sourceMappingURL=json-parsing.d.ts.map