yt-dlx
Version:
Effortless Audio-Video Downloader And Streamer!
89 lines • 2.29 kB
TypeScript
import { z } from "zod";
import { CommentType } from "../../../interfaces/CommentType";
declare const ZodSchema: z.ZodObject<{
query: z.ZodString;
useTor: z.ZodOptional<z.ZodBoolean>;
verbose: z.ZodOptional<z.ZodBoolean>;
}, "strip", z.ZodTypeAny, {
query: string;
useTor?: boolean | undefined;
verbose?: boolean | undefined;
}, {
query: string;
useTor?: boolean | undefined;
verbose?: boolean | undefined;
}>;
interface CaptionSegment {
utf8: string;
tOffsetMs?: number;
acAsrConf: number;
}
interface VideoTranscriptType {
text: string;
start: number;
duration: number;
segments: CaptionSegment[];
}
interface UploadAgo {
years: number;
months: number;
days: number;
formatted: string;
}
interface BaseEngineMetaData {
id: string;
original_url?: string;
webpage_url?: string;
title?: string;
view_count?: number;
like_count?: number;
uploader?: string;
uploader_id?: string;
uploader_url?: string;
thumbnail?: string;
categories?: string[];
duration: number;
age_limit?: number;
live_status?: string;
description?: string;
upload_date?: string;
comment_count?: number;
channel_id?: string;
channel_name?: string;
channel_url?: string;
channel_follower_count?: number;
}
interface MetadataPayload extends Omit<BaseEngineMetaData, "duration"> {
view_count_formatted: string;
like_count_formatted: string;
duration: number;
upload_date: string;
upload_ago: number;
upload_ago_formatted: UploadAgo;
comment_count_formatted: string;
channel_follower_count_formatted: string;
}
interface PayloadType {
BestAudioLow?: any;
BestAudioHigh?: any;
BestVideoLow?: any;
BestVideoHigh?: any;
AudioLowDRC?: any;
AudioHighDRC?: any;
AudioLow?: any;
AudioHigh?: any;
VideoLowHDR?: any;
VideoHighHDR?: any;
VideoLow?: any;
VideoHigh?: any;
ManifestLow?: any;
ManifestHigh?: any;
meta_data: MetadataPayload;
comments: CommentType[] | null;
transcript: VideoTranscriptType[] | null;
}
export default function extract(options: z.infer<typeof ZodSchema>): Promise<{
data: PayloadType;
}>;
export {};
//# sourceMappingURL=Extract.d.ts.map