export interface UseMediaQueryOptions { /** * Value returned on the server and during the first client render before * hydration, when `window.matchMedia` is unavailable. Defaults to `false`. */ defaultValue?: boolean; } /** * SSR-safe `matchMedia` hook. Returns whether `query` currently matches and * re-renders when it changes. Works in any React environment (Vite, CRA, * Next.js, Remix, Astro): on the server and the first client render it returns * `defaultValue`, then the real value resolves on hydration via * `useSyncExternalStore`. * * @example * const isDesktop = useMediaQuery('(min-width: 768px)') * return isDesktop ? : */ export declare function useMediaQuery(query: string, { defaultValue }?: UseMediaQueryOptions): boolean; //# sourceMappingURL=use-media-query.d.ts.map