/** * @todo Add fbjs utils as dependency and replace with canUseDOM * @link https://github.com/facebook/fbjs/blob/main/packages/fbjs/src/core/ExecutionEnvironment.js */ export declare function isBrowser(): boolean; export declare function isSSR(): boolean; export declare function onSSR(callback: () => void, otherwise?: () => void): void; export declare function onBrowser(callback: () => void, otherwise?: () => void): void; /** * Gets browser builtin globals in an server-side-rendering-safe way * * @returns The globals if in a browser environment, or undefined if in a * SSR environment */ export declare function getBrowserGlobals(): | { window: Window & typeof globalThis; document: Document; } | undefined; //# sourceMappingURL=browser.d.ts.map