

Track viewport width and height with options for SSR-safe initialization and debouncing.

## Usage [#usage]

```tsx
import { useWindowSize } from "@tilt-legal/cubitt-components/utilities/hooks";

const { width, height } = useWindowSize();
```

## API [#api]

### Signature [#signature]

```ts
declare function useWindowSize(options: UseWindowSizeOptions<false>): WindowSize;
declare function useWindowSize(options?: Partial<UseWindowSizeOptions<true>>): WindowSize<number>;
```

### Parameters [#parameters]

This hook takes no arguments.

### Return Value [#return-value]

| Value    | Type         | Description           |                             |
| -------- | ------------ | --------------------- | --------------------------- |
| `return` | \`WindowSize | WindowSize\<number>\` | Value returned by the hook. |
