import { MutableRefObject } from 'react'; /** * 来源于 ahooks * https://ahooks.js.org/zh-CN/hooks/dom/use-fullscreen */ export declare type BasicTarget = (() => T | null) | T | null | MutableRefObject; declare type TargetElement = HTMLElement | Element | Document | Window; export declare function getTargetElement(target?: BasicTarget, defaultElement?: TargetElement): TargetElement | undefined | null; export interface Options { onExitFull?: () => void; onFull?: () => void; } declare const _default: (target: BasicTarget, options?: Options) => readonly [boolean, { readonly setFull: () => void; readonly exitFull: () => void; readonly toggleFull: () => void; }]; export default _default;