export type ViewportContextState = { fullscreenElement: Element | null; toggleFullscreen: ( element?: HTMLElement | null, navigationUI?: FullscreenNavigationUI ) => Promise; }; export type FullscreenDocument = Document & { mozCancelFullScreen: () => Promise; mozFullScreenElement: Element | null; webkitExitFullscreen: () => Promise; webkitFullscreenElement: Element | null; }; export type FullscreenElement = HTMLElement & { mozRequestFullScreen?: (options?: FullscreenOptions) => Promise; webkitRequestFullscreen?: (options?: FullscreenOptions) => Promise; }; export type NavigatorWithKeyboard = Navigator & { keyboard?: { lock?: (keys?: string[]) => Promise; unlock?: () => void; }; };