/** * AsyncAPI 3.0 document generator driven by the operation registry. * * @module server/asyncapi */ import { type DiscoveryInfo } from './discovery-info.ts'; import type { OperationRegistry } from './operation-catalog.ts'; import { type UnknownRestBinding } from './rest-bindings.ts'; export type AsyncApiOptions = { registry: OperationRegistry; /** REST bindings used to resolve SSE channel addresses. Defaults to `createLiveRestBindings()`. */ restBindings?: ReadonlyArray; title?: string; version?: string; discoveryInfo?: DiscoveryInfo; serverUrl?: string; }; /** * Generate an AsyncAPI 3.0 document from the operation registry. * * Only discoverable operations with kind `subscription` or `stream` are * listed. The returned object is deterministic: object keys are recursively * sorted, and identical component messages are deduplicated by canonical JSON. */ export declare function generateAsyncApiDocument(options: AsyncApiOptions): Record;