/opt/canhelp/node_modules/openai/internal
Edit: /opt/canhelp/node_modules/openai/internal/shims.d.ts (1048B)
import type { Fetch } from "./builtin-types.js";
import type { ReadableStream } from "./shim-types.js";
export declare function getDefaultFetch(): Fetch;
type ReadableStreamArgs = ConstructorParameters
;
export declare function makeReadableStream(...args: ReadableStreamArgs): ReadableStream;
export declare function ReadableStreamFrom(iterable: Iterable | AsyncIterable): ReadableStream;
/**
* Most browsers don't yet have async iterable support for ReadableStream,
* and Node has a very different way of reading bytes from its "ReadableStream".
*
* This polyfill was pulled from https://github.com/MattiasBuelens/web-streams-polyfill/pull/122#issuecomment-1627354490
*/
export declare function ReadableStreamToAsyncIterable(stream: any): AsyncIterableIterator;
/**
* Cancels a ReadableStream we don't need to consume.
* See https://undici.nodejs.org/#/?id=garbage-collection
*/
export declare function CancelReadableStream(stream: any): Promise;
export {};
//# sourceMappingURL=shims.d.ts.map