UNPKG

561 BTypeScriptView Raw
1import type { BasicTarget } from '../utils/domTarget';
2export interface PageFullscreenOptions {
3 className?: string;
4 zIndex?: number;
5}
6export interface Options {
7 onExit?: () => void;
8 onEnter?: () => void;
9 pageFullscreen?: boolean | PageFullscreenOptions;
10}
11declare const useFullscreen: (target: BasicTarget, options?: Options) => readonly [boolean, {
12 readonly enterFullscreen: () => void;
13 readonly exitFullscreen: () => void;
14 readonly toggleFullscreen: () => void;
15 readonly isEnabled: true;
16}];
17export default useFullscreen;