/** * JSON Schema extraction and component deduplication for OpenAPI documents. * * @module server/openapi-schemas */ import type { OperationRegistry } from './operation-catalog.ts'; /** Schema slots owned by an operation definition. */ export type OpenApiSchemaSlot = 'Input' | 'Output' | 'Event'; export type OpenApiSchemaHelper = { readonly components: Record; refFor(operationName: string, slot: OpenApiSchemaSlot): unknown; }; /** * Extract JSON Schemas for every discoverable operation and hoist duplicate * schemas into `components.schemas` using canonical-JSON equality. */ export declare function extractComponentsSchemas(registry: OperationRegistry): OpenApiSchemaHelper;