import { ResponseWithBody } from "./ResponseWithBody.js"; export type BinaryResponse = { /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bodyUsed) */ bodyUsed: boolean; /** * Returns a ReadableStream of the response body. * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/body) */ stream: () => ReadableStream; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/arrayBuffer) */ arrayBuffer: () => Promise; /** [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/blob) */ blob: () => Promise; /** * [MDN Reference](https://developer.mozilla.org/docs/Web/API/Request/bytes) * Some versions of the Fetch API may not support this method. */ bytes?(): Promise; }; export declare function getBinaryResponse(response: ResponseWithBody): BinaryResponse;