1 | import type { BasicTarget } from '../utils/domTarget';
|
2 | export interface PageFullscreenOptions {
|
3 | className?: string;
|
4 | zIndex?: number;
|
5 | }
|
6 | export interface Options {
|
7 | onExit?: () => void;
|
8 | onEnter?: () => void;
|
9 | pageFullscreen?: boolean | PageFullscreenOptions;
|
10 | }
|
11 | declare 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 | }];
|
17 | export default useFullscreen;
|