ranui
Version:
A framework-agnostic Web Components UI library built on native custom elements, with TypeScript types, light/dark theming, SSR and PWA support.
10 lines (9 loc) • 532 B
TypeScript
/**
* Picture-in-Picture — standard API only (no Safari `webkitSetPresentationMode`
* legacy variant; that's a different, non-standard API and out of scope here).
* Mirrors `core/fullscreen.ts`'s shape: pure functions, no DOM-building.
*/
export declare function isPipSupported(video?: HTMLVideoElement): boolean;
export declare function isInPip(video?: HTMLVideoElement): boolean;
export declare function requestPip(video: HTMLVideoElement): Promise<PictureInPictureWindow>;
export declare function exitPip(): Promise<void>;