import { Plugin } from 'vite'; import { Reference } from '@xyd-js/uniform'; /** * JSON Schema structure as produced by typia.json.schemas<[T]>(). */ interface JsonSchemaOutput { version?: string; components?: { schemas?: Record; }; schemas?: Array<{ $ref?: string; } | any>; } /** * Converts a typia JSON Schema output into an xyd uniform Reference, * reusing xyd-openapi's battle-tested schema → uniform converter. */ declare function jsonSchemaToUniformReference(componentName: string, schema: JsonSchemaOutput): Reference; interface XydSourceReactRuntimeOptions { /** Path to tsconfig.json. Required for typia's TypeScript transform. */ tsconfig?: string; /** Property name for the injected uniform data. Defaults to `__xydUniform`. */ propertyName?: string; } /** * Vite plugin that auto-detects React components, uses typia to generate * metadata from their props at build time, and injects `__xydUniform`. * * Uses `typia.reflect.schemas` for rich type metadata including functions, * native types (Date, Map, Set), and full object structures. */ declare function xydSourceReactRuntime(options?: XydSourceReactRuntimeOptions): Plugin; export { type XydSourceReactRuntimeOptions, jsonSchemaToUniformReference, xydSourceReactRuntime };