import { ToggleButton, ToggleButtonConfig } from './ToggleButton'; import { UIInstanceManager } from '../../UIManager'; import type { PlayerAPI } from 'bitmovin-player'; /** * A button that toggles the display of captions and subtitles. * * The button is hidden while the source provides no caption tracks, because there is nothing to * toggle in that case. * * When captions are switched on, the button restores the track that was enabled last. If no track * has been enabled yet, it prefers a track matching the current audio language and falls back to * the first available track. * * @category Buttons */ export declare class CaptionToggleButton extends ToggleButton { constructor(config?: ToggleButtonConfig); configure(player: PlayerAPI, uimanager: UIInstanceManager): void; }