/** * Parser - JSON parsing and validation for semantic meta */ import type { SemanticPhaseMeta } from '../../../types/semantic-meta.js'; /** * Parse result */ export interface ParseResult { success: boolean; data?: SemanticPhaseMeta; errors?: string[]; } /** * Parse JSON string to SemanticPhaseMeta * * @param jsonString - JSON string * @returns Parse result */ export declare function parseSemanticMeta(jsonString: string): ParseResult; /** * Parse semantic meta from LLM output * * Handles various formats: * - Pure JSON * - JSON with markdown code fences * - JSON with extra text * * @param llmOutput - LLM output string * @returns Parse result */ export declare function parseFromLLMOutput(llmOutput: string): ParseResult; /** * Validate semantic meta completeness * * @param meta - Semantic meta to validate * @returns Validation errors (empty if valid) */ export declare function validateCompleteness(meta: SemanticPhaseMeta): string[]; //# sourceMappingURL=parser.d.ts.map