/** * Minimal validator for the StageSchema JSON-schema subset. Deliberately tiny: * a full JSON Schema implementation would pull a dependency (ajv) for * validation depth workflow gates don't need. Supported: type, oneOf, * properties, required, additionalProperties, items, minItems/maxItems, * minLength/maxLength, pattern, and enum. * Returns a list of human-readable problems (empty = valid) so the engine can * feed failures back into the retry prompt verbatim. */ import type { StageSchema } from "./types.js"; export declare function validateAgainstSchema(value: unknown, schema: StageSchema, path?: string): string[]; /** * Parse one schema-gated JSON value. * * Exact JSON and a whole fenced value remain the normal paths. Some adapters * prepend a short narration despite an explicit JSON-only contract. Accept * that drift only when the reply contains exactly one unambiguous top-level * object or array, the value reaches the end of the reply, and JSON.parse * accepts it. Trailing prose, multiple values, and malformed candidates remain * failures. */ export declare function parseStageOutput(text: string): { value?: unknown; error?: string; }; //# sourceMappingURL=validate.d.ts.map