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 & {
|
5 | strict?: never;
|
6 | allowMatchingProperties?: never;
|
7 | allowUnionTypes?: never;
|
8 | validateFormats?: never;
|
9 | $data?: never;
|
10 | verbose?: boolean;
|
11 | $comment?: never;
|
12 | formats?: never;
|
13 | loadSchema?: never;
|
14 | useDefaults?: never;
|
15 | coerceTypes?: never;
|
16 | next?: never;
|
17 | unevaluated?: never;
|
18 | dynamicRef?: never;
|
19 | meta?: boolean;
|
20 | defaultMeta?: never;
|
21 | inlineRefs?: boolean;
|
22 | loopRequired?: never;
|
23 | multipleOfPrecision?: never;
|
24 | };
|
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;
|
36 | }
|
37 | export default Ajv;
|
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 };
|