declare module 'react-dom' { function flushSync(callback: () => R): R; } /** * 現在の画面幅がモバイル幅かどうかを返す */ export declare function useMediaScreen1(): boolean; /** * Returns a dynamically-updating media query result. * * When the media query's matching state changes, this hook's result * will update with sync priority. * * @param query A full media query (the string written between `@media` and the `{` in CSS) * @returns true if the query matches, false if it doesn't */ export declare function useMedia(query: string): boolean; export interface ElementSize { width: number; height: number; } export declare function useElementSize(ref: React.RefObject, deps?: any[]): ElementSize | undefined; /** * Debounce version of setState with `requestAnimationFrame` * * @param defaultValue Default value for `useState` */ export declare function useDebounceAnimationState(defaultValue: T): [T, (value: T, force?: boolean) => void]; //# sourceMappingURL=hooks.d.ts.map