/** * Type definitions for yt-search-lib * Generated automatically - for reference only */ export as namespace YouTubeSearch; export interface YouTubeClientOptions { apiKey?: string; clientContext?: { clientName: string; clientVersion: string; hl?: string; gl?: string; utcOffsetMinutes?: number; }; proxyUrl?: string; useCache?: boolean; cacheMaxAge?: number; fetch?: typeof fetch; } export interface VideoResult { type: 'video' | 'channel' | 'playlist'; id: string; title: string; link: string; thumbnail_url: string; thumbnails: Array<{ url: string; width: number; height: number }>; author: string; duration: string; publishedAt: string; viewCount: string; badges?: string[]; description?: string; subscriberCount?: string; videoCount?: string; } export declare class YouTubeClient { constructor(options?: YouTubeClientOptions); search(query: string, options?: { limit?: number; type?: 'video' | 'channel' | 'playlist' | 'all' }): Promise; clearCache(): void; } export default YouTubeClient;