import type { BrowserNavigator, CookieStore, ProfilerConstructor } from '../browser/browser.types'; /** * Reflects values available in the global object (e.g. window or self). We use our own type to * adjust the expectations across the codebase when the native types offered by TypeScript aren't * sufficient. * * For example, we can mark a property as optional when it is not available in all browsers, or add * new browser APIs that are not yet typed properly in the typescript lib. * * Feel free to add more properties as needed, or mark some properties as optional when they are. */ export interface GlobalObject extends Omit { navigator: BrowserNavigator; cookieStore?: CookieStore; queueMicrotask?: typeof queueMicrotask; Profiler?: ProfilerConstructor; window?: Window; } export declare const globalObject: GlobalObject; export declare const isWorkerEnvironment: boolean;