yt-dlx
Version:
Effortless Audio-Video Downloader And Streamer!
48 lines • 2.56 kB
TypeScript
/// <reference types="node" />
import { z } from "zod";
import { EventEmitter } from "events";
declare var ZodSchema: z.ZodObject<{
query: z.ZodString;
output: z.ZodOptional<z.ZodString>;
useTor: z.ZodOptional<z.ZodBoolean>;
stream: z.ZodOptional<z.ZodBoolean>;
verbose: z.ZodOptional<z.ZodBoolean>;
metadata: z.ZodOptional<z.ZodBoolean>;
resolution: z.ZodEnum<["144p", "240p", "360p", "480p", "720p", "1080p", "1440p", "2160p", "3072p", "4320p", "6480p", "8640p", "12000p"]>;
filter: z.ZodOptional<z.ZodEnum<["invert", "rotate90", "rotate270", "grayscale", "rotate180", "flipVertical", "flipHorizontal"]>>;
}, "strip", z.ZodTypeAny, {
query: string;
resolution: "144p" | "240p" | "360p" | "480p" | "720p" | "1080p" | "1440p" | "2160p" | "3072p" | "4320p" | "6480p" | "8640p" | "12000p";
useTor?: boolean | undefined;
verbose?: boolean | undefined;
output?: string | undefined;
stream?: boolean | undefined;
metadata?: boolean | undefined;
filter?: "invert" | "rotate90" | "rotate270" | "grayscale" | "rotate180" | "flipVertical" | "flipHorizontal" | undefined;
}, {
query: string;
resolution: "144p" | "240p" | "360p" | "480p" | "720p" | "1080p" | "1440p" | "2160p" | "3072p" | "4320p" | "6480p" | "8640p" | "12000p";
useTor?: boolean | undefined;
verbose?: boolean | undefined;
output?: string | undefined;
stream?: boolean | undefined;
metadata?: boolean | undefined;
filter?: "invert" | "rotate90" | "rotate270" | "grayscale" | "rotate180" | "flipVertical" | "flipHorizontal" | undefined;
}>;
/**
* Downloads a YouTube video with custom resolution and optional video filter.
*
* @param query - The YouTube video URL or ID or name.
* @param resolution - The desired resolution of the video.
* @param stream - (optional) Whether to return the FfmpegCommand instead of downloading the video.
* @param verbose - (optional) Whether to log verbose output or not.
* @param useTor - (optional) Whether to use Tor for the download or not.
* @param output - (optional) The output directory for the processed files.
* @param metadata - (optional) If true, the function returns the extracted metadata and filename without processing the audio.
* @param filter - (optional) The video filter to apply.
*
* @returns An EventEmitter instance to handle events.
*/
export default function VideoCustom({ query, stream, useTor, filter, output, verbose, metadata, resolution, }: z.infer<typeof ZodSchema>): EventEmitter;
export {};
//# sourceMappingURL=VideoCustom.d.ts.map