import { type youtube_v3 } from "@googleapis/youtube"; import { type youtubeAnalytics_v2 } from "@googleapis/youtubeanalytics"; import type { OAuth2Client } from "google-auth-library"; import type { AnalyticsResult, ChannelDetails, Page, VideoCategory, VideoDetails, WritableSnippet } from "../types.js"; export interface AnalyticsQuery { startDate: string; endDate: string; } export interface VideoAnalyticsQuery extends AnalyticsQuery { videoId: string; } export interface YouTubeGateway { getMyChannel(): Promise; listMyVideos(pageSize: number, pageToken?: string): Promise>; getOwnedVideo(videoId: string): Promise; listVideoCategories(regionCode: string): Promise; getChannelAnalytics(query: AnalyticsQuery): Promise; getVideoAnalytics(query: VideoAnalyticsQuery): Promise; getVideoTrafficSources(query: VideoAnalyticsQuery): Promise; getVideoSearchTerms(query: VideoAnalyticsQuery, limit: number): Promise; getVideoRetention(query: VideoAnalyticsQuery): Promise; updateVideoSnippet(videoId: string, snippet: WritableSnippet): Promise; } export interface GoogleClientSet { data: youtube_v3.Youtube; analytics: youtubeAnalytics_v2.Youtubeanalytics; } export declare class GoogleYouTubeGateway implements YouTubeGateway { private readonly channelId; private readonly data; private readonly analytics; constructor(auth: OAuth2Client, channelId: string, clients?: GoogleClientSet); getMyChannel(): Promise; listMyVideos(pageSize: number, pageToken?: string): Promise>; getOwnedVideo(videoId: string): Promise; listVideoCategories(regionCode: string): Promise; private queryAnalytics; getChannelAnalytics(query: AnalyticsQuery): Promise; getVideoAnalytics(query: VideoAnalyticsQuery): Promise; getVideoTrafficSources(query: VideoAnalyticsQuery): Promise; getVideoSearchTerms(query: VideoAnalyticsQuery, limit: number): Promise; getVideoRetention(query: VideoAnalyticsQuery): Promise; updateVideoSnippet(videoId: string, snippet: WritableSnippet): Promise; }