/** * Utility functions for parsing JSON from LLM responses * LLMs sometimes include explanatory text before/after JSON * * @requires - No external dependencies (pure TypeScript utility) */ /** * Extract JSON from text that may contain additional content * Handles common patterns: * - "Here is the JSON: {...}" * - "```json\n{...}\n```" * - "{...}\n\nLet me explain..." * - Pure JSON */ export declare function extractJSON(text: string): string; /** * Parse JSON with robust error handling * Attempts to extract JSON from text if direct parsing fails */ export declare function parseJSONResponse(text: string): T; /** * Validate that the parsed result has expected structure */ export declare function validateJSONStructure(data: any, requiredFields: string[]): boolean; //# sourceMappingURL=jsonParser.d.ts.map