import type { APIType, RealAPIType } from "./types.js";
/**
 * 从抖音短链接解析得到直播间ID
 * @param shortURL 短链接，如 https://v.douyin.com/DpfoBLAXoHM/
 * @returns webRoomId 直播间ID
 */
export declare function resolveShortURL(shortURL: string): Promise<string>;
export declare const getCookie: () => Promise<string>;
/**
 * 随机选择一个可用的 API 接口
 * @returns 随机选择的 API 类型
 */
export declare function selectRandomAPI(exclude?: RealAPIType[]): RealAPIType;
export declare function getRoomInfo(webRoomId: string, opts?: {
    auth?: string;
    doubleScreen?: boolean;
    api?: APIType;
    uid?: string | number;
}): Promise<{
    living: boolean;
    roomId: string;
    owner: string;
    title: string;
    streams: StreamProfile[];
    sources: SourceProfile[];
    avatar: string;
    cover: string;
    liveId: string;
    uid: string;
    api: RealAPIType;
}>;
/**
 * 解析抖音号
 * @param url
 */
export declare function parseUser(url: string): Promise<any>;
export interface StreamProfile {
    desc: string;
    key: string;
    bitRate: number;
}
export interface StreamInfo {
    quality: string;
    name: string;
    flv?: string;
    hls?: string;
}
export interface SourceProfile {
    name: string;
    streamMap: StreamData["data"];
    streams: StreamInfo[];
}
interface StreamData {
    common: unknown;
    data: Record<string, {
        main: {
            flv: string;
            hls: string;
            cmaf: string;
            dash: string;
            lls: string;
            tsl: string;
            tile: string;
            sdk_params: string;
        };
    }>;
}
export {};
