/** * A `fetch` that skips TLS certificate verification, for Node only. * * Node's built-in fetch ignores `https.Agent` and accepts only an undici * dispatcher, which Node does not expose without the `undici` package. Rather * than take a runtime dependency, this sends the request with `node:https` * and rebuilds a standard `Response`. It buffers the whole body, which suits * the SDK's JSON API calls, and otherwise follows native fetch: redirects are * followed per the Fetch standard, and a request with no socket activity for * `inactivityTimeoutMs` fails. * * Failures reject with `TypeError("fetch failed")` carrying the socket error as * `cause`, matching native fetch so error mapping treats both the same. * * @returns `undefined` when `node:https` is unavailable. */ export declare function createInsecureFetch({ inactivityTimeoutMs, }?: { inactivityTimeoutMs?: number; }): Promise;