type WindowSize = { width: number | null; height: number | null; }; type HookReturnType = Readonly<{ windowSize: WindowSize; isMobile: boolean; isDesktop: boolean; }>; /** * Client hook to get the window size and whether the window is mobile or desktop. * @returns An object containing the window size and whether the window is mobile or desktop. *@example * ```tsx * function MyComponent() { * const { windowSize, isMobile, isDesktop } = useWindowSize(); * * return ( *
*

Window Size: {windowSize.width} x {windowSize.height}

*

{isMobile ? 'Mobile View' : 'Desktop View'}

*
* ); * } * ``` */ export declare function useWindowSize(): HookReturnType; export {}; //# sourceMappingURL=useWindowSize.d.ts.map