export type TIsMediaQueryArgs = Parameters; export type TIsMediaQueryReturn = ReturnType; /** * Gets a result of testing a CSS media query and wraps bare media features when needed. * @param str{string} source media query string * @returns {boolean} * @throws {TypeError} isMediaQuery: str must be a string * @see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_media_queries/Testing_media_queries * @example * // How to check if a user device has portrait or landscape orientation? * const mediaQuery = "(orientation: portrait)"; * const isPortrait = isMediaQuery(mediaQuery); * console.log(isPortrait); // => false * @example * // Disable decorative animation when the user prefers reduced motion * const shouldReduceMotion = isMediaQuery("(prefers-reduced-motion: reduce)"); */ export declare const isMediaQuery: (str: string) => boolean;