export interface UseMatchMediaOptions { /** * Mode of how hook will be work. * * Possible values: * - `stateful` (default) - hook will update returned state and cause rerender. * - `stateless` - hook will not update returned state. * * If you want to observe media query list without re-renders * you can set `mode: 'stateless'` and also `onChange` to listen changes. */ mode?: 'stateful' | 'stateless'; /** * Will be called each time media query list changes. * Also will be called once during listening initialization. */ onChange?: (mql: MediaQueryList) => void; /** * Initial returned state. Used before subscription effect applied. */ defaultState?: boolean | (() => boolean); } /** * Hook of state of match media query. * @param query Query. * @param options Options. * @returns Boolean. */ export declare function useMatchMedia(query: string, { mode, onChange, defaultState }?: UseMatchMediaOptions): boolean;