UNPKG

@diffusionstudio/core-v4

Version:

A fast, browser based video compositing engine powered by WebCodecs

21 lines (20 loc) 791 B
import { Background } from '../../text'; import { Serializer } from '../../../services'; import { hex } from '../../../types'; import { Renderer } from '../../../renderer'; import { WordGroup } from '../../../sources'; import { CaptionPreset } from '../interfaces'; import { CaptionClip } from '../caption'; export declare class WhisperCaptionPreset extends Serializer implements CaptionPreset<'WHISPER'> { static readonly type = "WHISPER"; static readonly colors: string[]; get type(): 'WHISPER'; highlightColors: hex[]; background: Background; applied: boolean; groups: WordGroup[]; currentIndex: number | null; init(clip: CaptionClip): void; applyStyles(clip: CaptionClip): Promise<void>; render(clip: CaptionClip, renderer: Renderer): void; }