UNPKG

yt-dlx

Version:

Effortless Audio-Video Downloader And Streamer!

44 lines 2.26 kB
/// <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>; filter: z.ZodOptional<z.ZodEnum<["invert", "rotate90", "rotate270", "grayscale", "rotate180", "flipVertical", "flipHorizontal"]>>; }, "strip", z.ZodTypeAny, { query: string; 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; 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 audio and video from a YouTube video URL with the lowest available resolution. * * @param query - The YouTube video URL or ID or name. * @param stream - (optional) Whether to stream the output or not. * @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 file. * @param metadata - (optional) If true, the function returns the extracted metadata and filename without processing the audio. This can be useful for debugging or obtaining metadata without downloading the audio. * @param filter - (optional) The video filter to apply. Available options: "invert", "rotate90", "rotate270", "grayscale", "rotate180", "flipVertical", "flipHorizontal". * * @returns An EventEmitter instance to handle events. */ export default function AudioVideoLowest({ query, stream, verbose, output, metadata, useTor, filter, }: z.infer<typeof ZodSchema>): EventEmitter; export {}; //# sourceMappingURL=AudioVideoLowest.d.ts.map