1 import type { AnySchemaObject, SchemaObject, JTDParser } from "./types";
2 import type { JTDSchemaType, SomeJTDSchemaType, JTDDataType } from "./types/jtd-schema";
3 import AjvCore, { CurrentOptions } from "./core";
4 declare type JTDOptions = CurrentOptions & {
6 allowMatchingProperties?: never;
7 allowUnionTypes?: never;
8 validateFormats?: never;
23 multipleOfPrecision?: never;
25 declare class Ajv extends AjvCore {
26 constructor(opts?: JTDOptions);
27 _addVocabularies(): void;
28 _addDefaultMetaSchema(): void;
29 defaultMeta(): string | AnySchemaObject | undefined;
30 compileSerializer<T = unknown>(schema: SchemaObject): (data: T) => string;
31 compileSerializer<T = unknown>(schema: JTDSchemaType<T>): (data: T) => string;
32 compileParser<T = unknown>(schema: SchemaObject): JTDParser<T>;
33 compileParser<T = unknown>(schema: JTDSchemaType<T>): JTDParser<T>;
34 private _compileSerializer;
35 private _compileParser;
38 export { Format, FormatDefinition, AsyncFormatDefinition, KeywordDefinition, KeywordErrorDefinition, CodeKeywordDefinition, MacroKeywordDefinition, FuncKeywordDefinition, Vocabulary, Schema, SchemaObject, AnySchemaObject, AsyncSchema, AnySchema, ValidateFunction, AsyncValidateFunction, ErrorObject, ErrorNoParams, JTDParser, } from "./types";
39 export { Plugin, Options, CodeOptions, InstanceOptions, Logger, ErrorsTextOptions } from "./core";
40 export { SchemaCxt, SchemaObjCxt } from "./compile";
41 export { KeywordCxt } from "./compile/validate";
42 export { JTDErrorObject } from "./vocabularies/jtd";
43 export { _, str, stringify, nil, Name, Code, CodeGen, CodeGenOptions } from "./compile/codegen";
44 export { JTDSchemaType, SomeJTDSchemaType, JTDDataType };
45 export { JTDOptions };