import type { ValidateFunction } from 'ajv';
import Ajv from 'ajv';
export declare const ajv: Ajv;
/**
 * Removes the $schema property and fixes the required array from a JSON schema.
 * The z.toJSONSchema() function in Zod 4.x has two issues:
 * 1. Includes a $schema reference that can cause issues when compiling with AJV
 * 2. Incorrectly marks fields with default values as required
 *
 * This function fixes both issues to ensure proper schema validation.
 * Exported so MCP tool listings can apply the same fix via `fixZodInputSchemaRequired` (see `getToolPublicFieldOnly`).
 */
export declare function fixZodSchemaRequired(schema: Record<string, unknown>): Record<string, unknown>;
/**
 * Compiles a JSON schema with AJV, automatically cleaning the $schema property
 * and fixing the required array.
 * This wrapper ensures compatibility with z.toJSONSchema() output.
 */
export declare function compileSchema(schema: Record<string, unknown>): ValidateFunction;
//# sourceMappingURL=ajv.d.ts.map