export interface SchemaCheck { valid: boolean; errors: string[]; } /** * Meta-validate a candidate schema document BEFORE it is ever compiled. Called * at registration time (register_task_schema). Three gates: * 1. it must be a plain JSON object, * 2. it must contain no $ref / $dynamicRef / $recursiveRef / $data, * 3. it must itself be a valid JSON Schema per ajv's meta-schema. * A document that fails here is NEVER passed to ajv.compile — the code-gen * surface is only reached by already-vetted documents. */ export declare function validateSchemaDocument(doc: unknown): SchemaCheck; /** * Validate a parsed result object against a registered schema. The schema is * assumed already vetted by validateSchemaDocument at registration; we re-vet * defensively (cheap) so a tampered DB row can never reach ajv.compile unchecked. */ export declare function validateResult(id: string, doc: object, result: unknown): SchemaCheck; /** Drop a single id (or all) from the compile cache. Test/teardown helper. */ export declare function clearSchemaCache(id?: string): void; //# sourceMappingURL=task-schema-validator.d.ts.map