/** * The MediaQueryVariables type is used for the `mediaQueryOrVariableName` parameter of * `useMediaQuery`. * * Augment the MediaQueryVariables interface to add the names for the CSS variables that * describe media queries in your project. * * @example * import '@mediamonks/react-kit'; * * declare module '@mediamonks/react-kit' { * interface MediaQueryVariables { * '--media-query-name': never; * } * } */ export interface MediaQueryVariables { } /** * Enables auto-completion for the variable names that are defined in `MediaQueryVariables` and also allows custom string values. */ type MediaQueryValues = keyof MediaQueryVariables | (string & { __custom_query__do_not_use_this_field__?: boolean; }); export declare function getMediaQueryList(mediaQueryOrVariableName: MediaQueryValues): MediaQueryList | undefined; /** * Hook that returns a boolean indicating whether the media query matches. * * @param mediaQueryOrVariableName - The name of the CSS variable that describes the media query. * @param defaultValue - The default value to return if the matchMedia API is not available. */ export declare function useMediaQuery(mediaQueryOrVariableName: MediaQueryValues, defaultValue?: boolean): boolean; export {};