// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. export type Fetch = typeof fetch; /** * An alias to the builtin `RequestInit` type so we can * easily alias it in import statements if there are name clashes. * * https://developer.mozilla.org/docs/Web/API/RequestInit */ type _RequestInit = RequestInit; /** * An alias to the builtin `Response` type so we can * easily alias it in import statements if there are name clashes. * * https://developer.mozilla.org/docs/Web/API/Response */ type _Response = Response; /** * The type for the first argument to `fetch`. * * https://developer.mozilla.org/docs/Web/API/Window/fetch#resource */ type _RequestInfo = Request | URL | string; export type { _RequestInit as RequestInit, _Response as Response, _RequestInfo as RequestInfo }; /** * A copy of the builtin `EndingType` type as they aren't fully supported in certain * environments and attempting to reference the global version will error. * * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L27941 */ type EndingType = 'native' | 'transparent'; /** * A copy of the builtin `BlobPropertyBag` type as they aren't fully supported in certain * environments and attempting to reference the global version will error. * * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L154 * https://developer.mozilla.org/en-US/docs/Web/API/Blob/Blob#options */ export interface BlobPropertyBag { endings?: EndingType; type?: string; } /** * A copy of the builtin `FilePropertyBag` type as they aren't fully supported in certain * environments and attempting to reference the global version will error. * * https://github.com/microsoft/TypeScript/blob/49ad1a3917a0ea57f5ff248159256e12bb1cb705/src/lib/dom.generated.d.ts#L503 * https://developer.mozilla.org/en-US/docs/Web/API/File/File#options */ export interface FilePropertyBag extends BlobPropertyBag { lastModified?: number; }