type Quality = "origin" | "FULL_HD1" | "HD1" | "SD1" | "SD2"; type Container = "mp4" | "mkv" | "flv" | "ts"; interface StreamSources { live: boolean; uniqueId: string; roomId?: string; hls?: Record; flv?: Record; title?: string; } interface RecordOptions { outFile?: string; quality?: Quality; container?: Container; ffmpegPath?: string; rotateEverySec?: number; maxDurationSec?: number; verbose?: boolean; onSegmentStart?: (path: string) => void; onSegmentEnd?: (path: string) => void; } interface RecorderOptions { endpoint?: string; apiKey?: string; } declare class StreamOfflineError extends Error { uniqueId: string; constructor(uniqueId: string); } declare class ApiKeyRejectedError extends Error { reason: string; constructor(reason: string); } declare class FfmpegMissingError extends Error { constructor(); } declare class TikTokLiveRecorder { private readonly uniqueId; private readonly endpoint; private readonly apiKey; constructor(uniqueId: string, options?: RecorderOptions); resolve(): Promise; record(options?: RecordOptions): Promise<{ outFile: string; durationSec: number; }>; } export { ApiKeyRejectedError, type Container, FfmpegMissingError, type Quality, type RecordOptions, type RecorderOptions, StreamOfflineError, type StreamSources, TikTokLiveRecorder, TikTokLiveRecorder as default };