import { type DocProblem, type ValueProblem } from './errors.js'; import { type JsonObject } from './json.js'; export declare const SCHEMA_DIALECT = "org-schema-v1"; export declare const JSON_SCHEMA_2020_12 = "https://json-schema.org/draft/2020-12/schema"; export declare const MAX_SCHEMA_BYTES: number; export declare const MAX_SCHEMA_DEPTH = 32; /** Every reason the schema is outside the dialect (all of them, not the first); empty when it is supported. */ export declare function validateSchema(schema: unknown): DocProblem[]; /** Throws a DocError (code of the first problem, all problems listed) when the schema is outside the dialect. */ export declare function assertSupportedSchema(schema: unknown): void; /** * The problems a value has against a supported schema; empty when it conforms. The schema must already have * passed validateSchema (this does not re-check it). A value that is not JSON data is one VALUE_NOT_JSON problem. */ export declare function validateValue(schema: JsonObject, value: unknown): ValueProblem[]; /** validateValue as `path: message` lines (the prototype's checkAgainstSchema output). */ export declare const checkAgainstSchema: (schema: JsonObject, value: unknown) => string[]; //# sourceMappingURL=schema-dialect.d.ts.map