import { type RefObject } from 'react'; /** * Fullscreen state */ export type FullscreenState = { isFullscreen: boolean; isSupported: boolean; }; /** * Hook to display an element or video full-screen * * @param ref - Ref to the element to make fullscreen * @returns Fullscreen state and control functions * * @example * ```tsx * const ref = useRef(null); * const { isFullscreen, enter, exit, toggle } = useFullscreen(ref); * * return ( *
* *
* ); * ``` */ export declare function useFullscreen(reference?: RefObject): FullscreenState & { enter: () => Promise; exit: () => Promise; toggle: () => Promise; }; //# sourceMappingURL=useFullscreen.d.ts.map