import { RefObject } from 'react'; /** * Hook return type */ interface UseFullscreenReturn { isFullscreen: boolean; isSupported: boolean; toggleFullscreen: () => Promise; enterFullscreen: () => Promise; exitFullscreen: () => Promise; error: string | null; } /** * Hook options */ interface UseFullscreenOptions { onEnter?: () => void; onExit?: () => void; onError?: (error: string) => void; } /** * Custom hook for managing fullscreen functionality * Provides cross-browser compatible fullscreen API with proper error handling * * @param elementRef - Ref to the element to make fullscreen * @param options - Optional callbacks for fullscreen events * @returns Object with fullscreen state and control functions * * @example * ```tsx * const containerRef = useRef(null); * const { isFullscreen, toggleFullscreen, isSupported } = useFullscreen(containerRef, { * onEnter: () => console.log('Entered fullscreen'), * onExit: () => console.log('Exited fullscreen'), * }); * ``` */ export declare const useFullscreen: (elementRef: RefObject, options?: UseFullscreenOptions) => UseFullscreenReturn; export {}; //# sourceMappingURL=useFullscreen.d.ts.map