UNPKG

linkmore-design

Version:

🌈 πŸš€lmη»„δ»ΆεΊ“γ€‚πŸš€

16 lines (15 loc) β€’ 610 B
import type { MutableRefObject } from 'react'; declare type TargetValue<T> = T | undefined | null; declare type TargetType = HTMLElement | Element | Window | Document; declare type BasicTarget<T extends TargetType = Element> = (() => TargetValue<T>) | TargetValue<T> | MutableRefObject<TargetValue<T>>; interface Options { onExit?: () => void; onEnter?: () => void; } declare const useFullscreen: (target: BasicTarget, options?: Options) => { isFullscreen: boolean; enterFullscreen: () => void; exitFullscreen: () => void; toggleFullscreen: () => void; }; export default useFullscreen;