/** Whatever holds a `fetch`: the global object in the process, a plain object in tests. */ export interface FetchHolder { fetch?: unknown; } /** * Replaces the global `fetch` with one that refuses, and makes the property * neither writable nor configurable, so that every request this process * makes goes through the fetch it was handed: the guarded one. It is the * second of three layers; the wiring is the first and the import rule on * socket modules is the third. It cannot stop code that imports `node:http` * itself; the import rule and review do that. */ export declare function lockGlobalFetch(target?: FetchHolder): void; /** Whether the lock stands: the marked function, and a property nothing can replace. */ export declare function isGlobalFetchLocked(target?: FetchHolder): boolean; //# sourceMappingURL=GlobalFetchLock.d.ts.map