UNPKG

660 BTypeScriptView Raw
1import { VideoInfo } from '../../types';
2export declare type PlayerParams = Record<string, string | number | boolean> | boolean;
3export declare type YouTubeParams = {
4 [x: string]: string | number | boolean;
5};
6export declare const param: (obj: YouTubeParams) => string;
7export declare const paramsToObject: (url: string) => YouTubeParams;
8export declare const getYouTubeParams: (videoInfo: VideoInfo, youTubePlayerParamsSettings: YouTubeParams | false) => string;
9export declare const isYouTubeNoCookie: (url: string) => boolean;
10export declare const getVimeoURLParams: (defaultParams: PlayerParams, videoInfo?: VideoInfo | undefined) => string;