import type { ElementTarget } from "../use-target-element/index.js"; export interface UseFullscreenOptions { /** * Automatically exit fullscreen when component is unmounted * * @defaultValue false */ autoExit?: boolean; } export interface UseFullscreenReturns { /** * Whether the browser supports fullscreen API */ isSupported: boolean; /** * Whether the element is in fullscreen mode */ isFullscreen: boolean; /** * Whether the element itself is in fullscreen mode */ isSelfFullscreen: boolean; /** * Enter fullscreen mode */ enter(): Promise; /** * Exit fullscreen mode */ exit(): Promise; /** * Toggle fullscreen mode */ toggle(): Promise; } /** * A React Hook that allows you to use the [requestFullscreen API](https://developer.mozilla.org/en-US/docs/Web/API/Element/requestFullscreen) with ease. */ export declare function useFullscreen(target?: ElementTarget, options?: UseFullscreenOptions): UseFullscreenReturns;