import { Readable } from 'node:stream'; interface StreamableFileLike { getHeaders: () => { type?: string | undefined; disposition?: string | string[] | undefined; length?: number | undefined; }; getStream: () => Readable; } interface ResponseParts { /** Set for a transport that writes the source stream itself and never reads the Web body. */ readonly direct?: boolean | undefined; readonly headers: Headers; readonly status: number; } declare const isStreamableFile: (value: unknown) => value is StreamableFileLike; declare const toBodyStream: (stream: Readable) => ReadableStream; declare const toTextResponse: (body: string | number | boolean | bigint, status: number, headers: Headers) => Response; declare const toFileResponse: (file: StreamableFileLike, { direct, headers, status }: ResponseParts) => Response; declare const toBinaryResponse: (body: Uint8Array | ArrayBuffer | ReadableStream, status: number, headers: Headers) => Response; export { isStreamableFile, toBinaryResponse, toBodyStream, toFileResponse, toTextResponse }; export type { ResponseParts, StreamableFileLike }; //# sourceMappingURL=encode.d.ts.map