import type { StandardSchemaV1 } from '@standard-schema/spec'; import type { Static, TSchema } from 'typebox'; import type { SchemaAdapter, SchemaResult } from './schema-types.js'; export type { SchemaAdapter, SchemaResult, ValidationIssue, } from './schema-types.js'; export declare function registerSchemaAdapter(adapter: SchemaAdapter): void; export declare function isStandardSchema(schema: unknown): schema is StandardSchemaV1; export declare function validateSchema(schema: unknown, value: unknown): Promise>; export type AnySchema = StandardSchemaV1 | TypeBoxLike; export interface TypeBoxLike { readonly '~kind': string; } type InferStandardIO = S extends { '~standard': { types?: infer T; }; } ? NonNullable extends { [K in Kind]: infer V; } ? V : unknown : unknown; type InferTypeBox = S extends { readonly '~kind': string; } ? Static> : unknown; export type InferSchemaOutput = S extends { _zod: { output: infer Z; }; } ? Z : S extends { readonly '~kind': string; } ? InferTypeBox : InferStandardIO; export type InferSchemaInput = S extends { _zod: { input: infer Z; }; } ? Z : S extends { readonly '~kind': string; } ? InferTypeBox : InferStandardIO; //# sourceMappingURL=schema.d.ts.map