import type { AsyncApiChannelObject, AsyncApiParameterObject } from '@scalar/types/asyncapi/3.1'; import type { ParameterObject } from '@scalar/workspace-store/schemas/v3.2/strict/openapi-document'; /** Preserve AsyncAPI metadata without adding it to the OpenAPI parameter schema. */ type AdaptedAsyncApiParameter = ParameterObject & Pick; /** * Adapt AsyncAPI channel parameters into the OpenAPI `ParameterObject` shape so we can reuse the * existing `ParameterList` rendering instead of building a separate component. * * AsyncAPI parameters are address placeholders (the `{param}` expressions in a channel address). * They are string-only and, because every placeholder in the address must be supplied, always * required. We therefore map them to `path` parameters (the closest OpenAPI analog) and fold the * `enum`, `default`, and `examples` fields onto a synthetic string schema so the schema renderer * can display them. Keep `location` separately so the channel can render its runtime expression. */ export declare const adaptAsyncApiParameters: (parameters: AsyncApiChannelObject["parameters"]) => AdaptedAsyncApiParameter[]; export {}; //# sourceMappingURL=adapt-async-api-parameters.d.ts.map