import type { ProxyConfig } from "./proxies.js"; import type { TranscriptList } from "./transcripts.js"; export declare class YtCaptionKitError extends Error { constructor(message?: string); } export declare class CookieError extends YtCaptionKitError { } export declare class CookiePathInvalid extends CookieError { } export declare class CookieInvalid extends CookieError { } export declare class CouldNotRetrieveTranscript extends YtCaptionKitError { readonly videoId: string; protected errorMessage: string; protected causeMessageIntro: string; protected githubReferral: string; constructor(videoId: string); protected get causeText(): string; toString(): string; } export declare class YouTubeDataUnparsable extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class YouTubeRequestFailed extends CouldNotRetrieveTranscript { private readonly reason; constructor(videoId: string, reason: string); protected get causeText(): string; } export declare class VideoUnplayable extends CouldNotRetrieveTranscript { readonly reason: string | null; readonly subReasons: string[]; constructor(videoId: string, reason: string | null, subReasons: string[]); protected get causeText(): string; } export declare class VideoUnavailable extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class InvalidVideoId extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class RequestBlocked extends CouldNotRetrieveTranscript { static readonly BASE_CAUSE_MESSAGE = "YouTube is blocking requests from your IP. This usually is due to one of the following reasons:\n- You have done too many requests and your IP has been blocked by YouTube\n- You are doing requests from an IP belonging to a cloud provider (like AWS, Google Cloud Platform, Azure, etc.). Unfortunately, most IPs from cloud providers are blocked by YouTube.\n\n"; private proxyConfig?; withProxyConfig(proxyConfig?: ProxyConfig): this; protected get causeText(): string; } export declare class IpBlocked extends RequestBlocked { protected get causeText(): string; } export declare class TranscriptsDisabled extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class AgeRestricted extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class NotTranslatable extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class TranslationLanguageNotAvailable extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class FailedToCreateConsentCookie extends CouldNotRetrieveTranscript { protected get causeText(): string; } export declare class NoTranscriptFound extends CouldNotRetrieveTranscript { private readonly requestedLanguageCodes; private readonly transcriptData; constructor(videoId: string, requestedLanguageCodes: Iterable, transcriptData: TranscriptList); protected get causeText(): string; } export declare class PoTokenRequired extends CouldNotRetrieveTranscript { protected get causeText(): string; }