<commit_before>import PlayerState from './constants/PlayerStates';
import { EventType } from './eventNames';

export interface EmitterType {
    trigger: (eventName: string, event: object) => void;
}

export interface Options {
    width?: number;
    height?: number;
    videoId?: string;
    playerVars?: {
        autoplay?: 0 | 1,
        cc_lang_pref?: string,
        cc_load_policy?: 1,
        color?: 'red' | 'white',
        controls?: 0 | 1,
        disablekb?: 0 | 1,
        enablejsapi?: 0 | 1,
        end?: number,
        fs?: 0 | 1,
        hl?: string,
        iv_load_policy?: 1 | 3,
        list?: string,
        listType?: 'playlist' | 'search' | 'user_uploads',
        loop?: 0 | 1,
        modestbranding?: 1,
        origin?: string,
        playlist?: string,
        playsinline?: 0 | 1,
        rel?: 0 | 1,
        start?: number,
        widget_referrer?: string,
    };
    events?: {
        [eventType in EventType]?: (event: CustomEvent) => void
    };
}

export interface IframeApiType {
    Player: {new(elementId: string, options: Options): YouTubePlayer};<commit_msg>[youtube-player] Adding string width/height definition (#44472)<commit_after>import PlayerState from './constants/PlayerStates';
import { EventType } from './eventNames';

export interface EmitterType {
    trigger: (eventName: string, event: object) => void;
}

export interface Options {
    width?: number | string;
    height?: number | string;
    videoId?: string;
    playerVars?: {
        autoplay?: 0 | 1,
        cc_lang_pref?: string,
        cc_load_policy?: 1,
        color?: 'red' | 'white',
        controls?: 0 | 1,
        disablekb?: 0 | 1,
        enablejsapi?: 0 | 1,
        end?: number,
        fs?: 0 | 1,
        hl?: string,
        iv_load_policy?: 1 | 3,
        list?: string,
        listType?: 'playlist' | 'search' | 'user_uploads',
        loop?: 0 | 1,
        modestbranding?: 1,
        origin?: string,
        playlist?: string,
        playsinline?: 0 | 1,
        rel?: 0 | 1,
        start?: number,
        widget_referrer?: string,
    };
    events?: {
        [eventType in EventType]?: (event: CustomEvent) => void
    };
}

export interface IframeApiType {
    Player: {new(elementId: string, options: Options): YouTubePlayer};
{'fraction_non_alphanumeric': 0.13791593695271454, 'fraction_numerical': 0.019702276707530646, 'mean_word_length': 2.292507204610951, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6798714', 'n_tokens_mistral': 734, 'n_tokens_neox': 688, 'n_words': 200}