import { i as jsonSchemaValidator, n as JsonSchemaValidator, t as JsonSchemaType } from "./types-R2RTIcjk.mjs"; //#region ../core-internal/src/validators/cfWorkerProvider.d.ts /** * JSON Schema draft version supported by `@cfworker/json-schema`. */ type CfWorkerSchemaDraft = '4' | '7' | '2019-09' | '2020-12'; /** * `@cfworker/json-schema`-backed JSON Schema validator. See * `@modelcontextprotocol/{client,server}/validators/cf-worker` for the customisation entry point. * * @example Use with default configuration (draft 2020-12, shortcircuit on) * ```ts source="./cfWorkerProvider.examples.ts#CfWorkerJsonSchemaValidator_default" * const validator = new CfWorkerJsonSchemaValidator(); * ``` * * @example Use with custom configuration * ```ts source="./cfWorkerProvider.examples.ts#CfWorkerJsonSchemaValidator_customConfig" * const validator = new CfWorkerJsonSchemaValidator({ * draft: '2020-12', * shortcircuit: false // Report all errors * }); * ``` */ declare class CfWorkerJsonSchemaValidator implements jsonSchemaValidator { private shortcircuit; private draft; /** * Create a validator * * @param options - Configuration options * @param options.shortcircuit - If `true`, stop validation after first error (default: `true`) * @param options.draft - JSON Schema draft version to use (default: `'2020-12'`) */ constructor(options?: { shortcircuit?: boolean; draft?: CfWorkerSchemaDraft; }); /** * Create a validator for the given JSON Schema * * Unlike AJV, this validator is not cached internally * * @param schema - Standard JSON Schema object * @returns A validator function that validates input data */ getValidator(schema: JsonSchemaType): JsonSchemaValidator; } //#endregion export { CfWorkerSchemaDraft as n, CfWorkerJsonSchemaValidator as t }; //# sourceMappingURL=cfWorkerProvider-DUhk5Ewx.d.mts.map