UNPKG

@bililive-tools/douyin-recorder

Version:
48 lines (47 loc) 1.25 kB
import type { Recorder } from "@bililive-tools/manager"; import type { APIType, RealAPIType } from "./types.js"; export declare function getInfo(channelId: string, opts?: { auth?: string; api?: APIType; uid?: string | number; }): Promise<{ living: boolean; owner: string; title: string; roomId: string; avatar: string; cover: string; liveId: string; uid: string; api: RealAPIType; liveStartTime: Date; recordStartTime: Date; area: string; }>; export declare function getStream(opts: Pick<Recorder, "channelId" | "quality" | "streamPriorities" | "sourcePriorities"> & { rejectCache?: boolean; strictQuality?: boolean; auth?: string; formatPriorities?: Array<"flv" | "hls">; doubleScreen?: boolean; api?: APIType; uid?: string | number; }): Promise<{ currentStream: { name: string; source: string; url: string; onlyAudio: boolean; }; living: boolean; roomId: string; owner: string; title: string; streams: import("./douyin_api.js").StreamProfile[]; sources: import("./douyin_api.js").SourceProfile[]; avatar: string; cover: string; liveId: string; uid: string; api: RealAPIType; }>;