import { Program, Type } from "@typespec/compiler"; import { HttpOperationParameters, HttpOperationResponseContent } from "../types.js"; export interface StreamMetadata { /** * The `Type` of the property decorated with `@body`. */ bodyType: Type; /** * The `Type` of the stream model. * For example, an instance of `HttpStream`. */ originalType: Type; /** * The `Type` of the streaming payload. * * For example, given `HttpStream`, * the `streamType` would be `Foo`. */ streamType: Type; /** * The list of content-types that this stream supports. */ contentTypes: string[]; } /** * Gets stream metadata for a given `HttpOperationParameters` or `HttpOperationResponseContent`. */ export declare function getStreamMetadata(program: Program, httpParametersOrResponse: HttpOperationParameters | HttpOperationResponseContent): StreamMetadata | undefined; //# sourceMappingURL=streams.d.ts.map