/** * AJV Validator Utility for Testing * * This utility loads the bundled JSON schemas from schemas.yaml and provides * an AJV instance that can be used to validate JSON inputs against the schemas. */ import Ajv2020 from "ajv/dist/2020"; import type { ValidateFunction } from "ajv"; /** * Creates an AJV instance with all schemas from the bundled schemas.yaml file loaded. * * @param schemasPath - Optional path to the schemas.yaml file. Defaults to the bundled schema file. * @returns An AJV instance with all schemas loaded and ready for validation */ export declare function createAjvValidator(schemasPath?: string): Ajv2020; /** * Gets a compiled validator function for a specific schema. * * @param ajv - The AJV instance (from createAjvValidator) * @param schemaId - The schema ID (e.g., "uuid.yaml", "Address.yaml", "OpportunityBase.yaml") * @returns A compiled validate function */ export declare function getValidator(ajv: Ajv2020, schemaId: string): ValidateFunction; /** * Validates JSON data against a specific schema. * * @param ajv - The AJV instance (from createAjvValidator) * @param schemaId - The schema ID to validate against * @param data - The JSON data to validate * @returns An object with isValid boolean and errors array */ export declare function validate(ajv: Ajv2020, schemaId: string, data: unknown): { isValid: boolean; errors: string[] | null; }; export declare const ajv: Ajv2020; //# sourceMappingURL=ajv-validator.d.ts.map