UNPKG

@bililive-tools/huya-recorder

Version:
33 lines (32 loc) 873 B
import { Recorder } from "@bililive-tools/manager"; import type { SourceProfile, StreamProfile } from "./types.js"; export declare function getInfo(channelId: string): Promise<{ living: boolean; owner: string; title: string; roomId: number; avatar: string; cover: string; startTime: Date; liveId: string; }>; export declare function getStream(opts: Pick<Recorder, "channelId" | "quality" | "streamPriorities" | "sourcePriorities" | "api" | "formatPriorities"> & { strictQuality?: boolean; }): Promise<{ currentStream: { name: string; source: string; url: string; }; living: boolean; id: number; owner: string; title: string; roomId: number; avatar: string; cover: string; streams: StreamProfile[]; sources: SourceProfile[]; startTime: Date; liveId: string; }>;