UNPKG

@bililive-tools/douyu-recorder

Version:
32 lines (31 loc) 852 B
import { Recorder } from "@bililive-tools/manager"; export declare function getInfo(channelId: string): Promise<{ living: boolean; owner: string; title: string; liveStartTime: Date; avatar: string; cover: string; liveId: string; recordStartTime: Date; }>; export declare function getStream(opts: Pick<Recorder, "channelId" | "quality"> & { rejectCache?: boolean; strictQuality?: boolean; source?: string; onlyAudio?: boolean; avoidEdgeCDN?: boolean; }): Promise<{ living: true; sources: import("./dy_api.js").SourceProfile[]; streams: import("./dy_api.js").StreamProfile[]; isSupportRateSwitch: boolean; isOriginalStream: boolean; currentStream: { onlyAudio: boolean; source: string; name: string; rate: number; url: string; }; }>;