import * as Draft07 from 'json-schema-typed/draft-07'; import * as Draft2019 from 'json-schema-typed/draft-2019-09'; import * as Draft2020 from 'json-schema-typed/draft-2020-12'; import { ConditionalSchemaConverter } from '@orpc/openapi'; import { Context } from '@orpc/server'; import { StandardHandlerPlugin, StandardHandlerOptions } from '@orpc/server/standard'; type JsonSchema = Draft2020.JSONSchema | Draft2019.JSONSchema | Draft07.JSONSchema; declare enum JsonSchemaXNativeType { BigInt = "bigint", RegExp = "regexp", Date = "date", Url = "url", Set = "set", Map = "map" } interface JsonSchemaCoerceOptions { components?: Record; } declare class JsonSchemaCoercer { #private; coerce(schema: JsonSchema, value: unknown, options?: JsonSchemaCoerceOptions): unknown; } interface SmartCoercionPluginOptions { schemaConverters?: readonly ConditionalSchemaConverter[]; } declare class SmartCoercionPlugin implements StandardHandlerPlugin { #private; private readonly converter; private readonly coercer; private readonly cache; constructor(options?: SmartCoercionPluginOptions); init(options: StandardHandlerOptions): void; } export { JsonSchemaCoercer, JsonSchemaXNativeType, SmartCoercionPlugin }; export type { JsonSchema, JsonSchemaCoerceOptions, SmartCoercionPluginOptions };