import { ErrorObject as ErrorObject$1 } from 'ajv'; type ConfigOption = { schemaPath: string; }; type JsonObject = { [key: string]: any; }; type ValidatorResponse = { isValid: boolean; errors?: ErrorObject[] | ErrorObject$1[]; }; type ErrorObject = { path?: string; property?: string; message: string; }; declare class Validator { #private; initialize(options: ConfigOption): void; static getInstance(): Validator; validate(reqBody: JsonObject, fileName: string, ajvFormatting?: boolean): ValidatorResponse; validate(reqBody: JsonObject, schema: JsonObject, ajvFormatting?: boolean): ValidatorResponse; } declare const validator: Validator; export { ConfigOption, ErrorObject, JsonObject, ValidatorResponse, validator };