/** * Custom hook that implements the behavior of the [matchMedia](https://developer.mozilla.org/en-US/docs/Web/API/Window/matchMedia) method as a React hook. * * > In a Node environment, where media queries are not supported, you must use the [configureNodeEnv](https://github.com/Krombik/react-hook-media#configurenodeenv) method to simulate different device conditions, like in this [example](https://github.com/Krombik/react-hook-media#example). * * @example * ```js * // Usage in a React component * const isMobile = useMatchMedia('(max-width: 768px)'); * if (isMobile) { * // Render mobile layout * } else { * // Render desktop layout * } * ``` * * @param mediaQuery - The media query to be evaluated. * @returns `true` if the media query matches, `false` otherwise. */ declare const useMatchMedia: (mediaQuery: string) => boolean; export = useMatchMedia;