/** * Regular expression to detect both `\r\n` and `\n` line endings */ export declare const PATTERN_LINE_SEPARATOR: RegExp; /** * Enum of all supported transcript formats */ export declare enum TranscriptFormat { /** * Data is HTML */ HTML = "html", /** * Data is JSON */ JSON = "json", /** * Data is {@link https://en.wikipedia.org/wiki/SubRip|SRT} */ SRT = "srt", /** * Data is {@link https://en.wikipedia.org/wiki/WebVTT|WebVTT} */ VTT = "vtt" } /** * Define a segment/cue */ export type Segment = { /** * Time (in seconds) when segment starts */ startTime: number; /** * Time when segment starts formatted as a string in the format HH:mm:SS.fff */ startTimeFormatted: string; /** * Time (in seconds) when segment ends */ endTime: number; /** * Time when segment ends formatted as a string in the format HH:mm:SS.fff */ endTimeFormatted: string; /** * Name of speaker for `body` */ speaker?: string; /** * Text of transcript for segment */ body: string; }; /** * Default length to use when combining segments with {@link Options.combineSegments} */ export declare const DEFAULT_COMBINE_SEGMENTS_LENGTH = 32;