UNPKG

@lzwme/m3u8-dl

Version:

A free, open-source, and powerful m3u8 video batch downloader with multi-threaded downloading, play-while-downloading, WebUI management, video parsing, and more.

7 lines (6 loc) 338 B
import type { ApiResponse, VideoInfo } from '../../types'; export declare abstract class BaseParser { protected static success<T>(data: T): ApiResponse<T>; protected static error(code: number, message: string): ApiResponse<null>; static parse(url: string, headers?: Record<string, string>): Promise<ApiResponse<VideoInfo>>; }