import type { ICache } from '../types/Cache.js'; import type { FetchFunction } from '../types/PlatformShim.js'; /** * Represents YouTube's player script. This is required to decipher signatures. */ export default class Player { #private; constructor(signature_timestamp: number, sig_sc: string, nsig_sc: string, player_id: string); static create(cache: ICache | undefined, fetch?: FetchFunction): Promise; decipher(url?: string, signature_cipher?: string, cipher?: string, this_response_nsig_cache?: Map): string; static fromCache(cache: ICache, player_id: string): Promise; static fromSource(cache: ICache | undefined, sig_timestamp: number, sig_sc: string, nsig_sc: string, player_id: string): Promise; cache(cache?: ICache): Promise; static extractSigTimestamp(data: string): number; static extractSigSourceCode(data: string): string; static extractNSigSourceCode(data: string): string; get url(): string; get sts(): number; get nsig_sc(): string; get sig_sc(): string; static get LIBRARY_VERSION(): number; }