import { AnyZodObject, ZodTypeAny, input, TypeOf, ZodEffects } from 'zod'; import { Options as Options$1 } from 'zod-to-json-schema'; import { SchemaObject, Options, ValidateFunction } from 'ajv'; import { FrameworkErrorOptions } from '../../errors.cjs'; import '../types.cjs'; import './guards.cjs'; /** * Copyright 2025 © BeeAI a Series of LF Projects, LLC * SPDX-License-Identifier: Apache-2.0 */ type AnyToolSchemaLike = AnyZodObject | SchemaObject; type AnySchemaLike = ZodTypeAny | SchemaObject; type FromSchemaLike = T extends ZodTypeAny ? TypeOf : unknown; type FromSchemaLikeRaw = T extends ZodTypeAny ? input : unknown; declare function validateSchema(schema: T | ZodEffects, errorOptions?: FrameworkErrorOptions): asserts schema is T; declare function toJsonSchema(schema: T, options?: Partial): SchemaObject; declare function createSchemaValidator(schema: T, options?: Options): ValidateFunction>; interface ParseBrokenJsonOptions { pair?: [string, string] | null; } declare function parseBrokenJson(input: string | undefined, options?: ParseBrokenJsonOptions): any; export { type AnySchemaLike, type AnyToolSchemaLike, type FromSchemaLike, type FromSchemaLikeRaw, createSchemaValidator, parseBrokenJson, toJsonSchema, validateSchema };