/**
* Subscribes to a CSS media query (web) or Dimensions changes (native) and
* returns whether the query currently matches.
*
* On web: uses `window.matchMedia(query)`.
* On native: parses `(min-width: Npx)` / `(max-width: Npx)` and watches
* `Dimensions.addEventListener('change')`. Other CSS features are returned as
* the `initialValue` since RN can't evaluate them.
*
* @example
* const isCompact = useMediaQuery('(max-width: 640px)');
* return isCompact ? : ;
*/
export declare function useMediaQuery(query: string, initialValue?: boolean): boolean;