/** * SSR-safe environment detection utilities * * These utilities help ensure hooks work correctly in both browser and server environments, * providing graceful fallbacks for SSR scenarios. */ /** * Checks if code is running in a browser environment * @returns True if window is defined (browser), false otherwise (SSR) */ export declare const isBrowser: () => boolean; /** * Checks if code is running in a server environment * @returns True if window is undefined (SSR), false otherwise (browser) */ export declare const isServer: () => boolean; /** * Checks if DOM APIs are available * @returns True if document is defined and accessible */ export declare const isDOMAvailable: () => boolean; /** * Checks if Performance API is available * @returns True if performance is defined and accessible */ export declare const isPerformanceAvailable: () => boolean; /** * Checks if localStorage is available and accessible * @returns True if localStorage is available and can be used */ export declare const isLocalStorageAvailable: () => boolean; /** * Checks if sessionStorage is available and accessible * @returns True if sessionStorage is available and can be used */ export declare const isSessionStorageAvailable: () => boolean; /** * Safely gets window object * @returns Window object if available, undefined otherwise */ export declare const getWindow: () => Window | undefined; /** * Safely gets document object * @returns Document object if available, undefined otherwise */ export declare const getDocument: () => Document | undefined; /** * No-op function for SSR fallbacks */ export declare const noop: () => void; //# sourceMappingURL=ssr.d.ts.map