import type { SchemaObject } from 'openapi3-ts/oas31'; import type { Schema } from '../schema/index.js'; /** * Convert an optional Standard Schema-compatible validator to OpenAPI schema. * * Returns `undefined` when no schema is provided or conversion fails. Conversion * errors are written to console for build-time diagnostics because this helper * is primarily used while generating service definitions and API docs. * * @example * ```ts * const openApiSchema = await validationToSchema(z.object({ id: z.string() })) * ``` * * @group Schema */ export declare const validationToSchema: (schema?: T) => Promise; //# sourceMappingURL=validationToSchema.d.ts.map