import { ChildObjectInfo, RootObjectInfo } from "@azure-tools/openapi-tools-common"; import { ErrorObject } from "ajv"; import { JsonLoader } from "../swagger/jsonLoader"; import { Schema } from "../swagger/swaggerTypes"; import { Severity } from "../util/severity"; import { Writable } from "../util/utils"; import { SourceLocation } from "../util/validationError"; import { SchemaValidateContext, SchemaValidateFunction, SchemaValidateIssue, SchemaValidator, SchemaValidatorOption } from "./schemaValidator"; export declare class AjvSchemaValidator implements SchemaValidator { private ajv; constructor(loader: JsonLoader, schemaValidatorOption?: SchemaValidatorOption); compileAsync(schema: Schema): Promise; compile(schema: Schema): SchemaValidateFunction; private getValidateFunction; } export declare const ajvErrorListToSchemaValidateIssueList: (errors: ErrorObject[], ctx: SchemaValidateContext, result: SchemaValidateIssue[]) => void; export declare const sourceMapInfoToSourceLocation: (info?: ChildObjectInfo | RootObjectInfo) => Writable; export declare const ajvErrorToSchemaValidateIssue: (err: ErrorObject, ctx: SchemaValidateContext) => SchemaValidateIssue | undefined; interface MetaErr { code: string; message: string; severity: Severity; params?: any; } export declare const ajvErrorCodeToOavErrorCode: (error: ErrorObject, ctx: SchemaValidateContext) => MetaErr | undefined; export {}; //# sourceMappingURL=ajvSchemaValidator.d.ts.map