/** * inspired by https://mathiasbynens.be/notes/globalthis */ interface WorkerGlobalScope { empty: never; } type Without = { [P in Exclude]?: never; }; type XOR = T | U extends object ? (Without & U) | (Without & T) : T | U; export type GlobalObject = XOR; export declare function getGlobalObject(): T; /** * Cached reference to the global object so it can be imported and re-used without * re-evaluating the heavyweight fallback logic in `getGlobalObject()`. */ export declare const globalObject: (Without & WorkerGlobalScope) | (Without & Window); export declare const isWorkerEnvironment: boolean; export {};