/// import { File as GcpFile, Storage } from '@google-cloud/storage'; export interface DownloadOptions { onSegmentComplete?: (file: string, completed: number, total: number) => void; onSegmentError?: (file: string, error: Error) => void; } export declare function wrapWithProgress(p: Promise, file: string, progress: { completed: number; total: number; }, onComplete: (file: string, completed: number, total: number) => void, onError?: (file: string, error: Error) => void): Promise; export declare function isValidManifestPath(url: string): boolean; export declare function extractTsUrls(m3u8Content: string): string[]; export declare function extractM3u8Urls(m3u8Content: string): string[]; export declare function extractKeyUrls(m3u8Content: string): string[]; export declare function extractLines(m3u8Content: string, filePattern: RegExp): string[]; export declare function extractBaseUrl(url: string): string; export declare function extractParentFolder(url: string, offset?: number): string; export declare function extractFilename(url: string): string; export declare function createStorageClient(credsPath: string): Storage; export declare function streamDownloadToGcp(bucketName: string, url: string, outputName: string, gcpStorageClient?: Storage | null, gcpCredentialsPath?: string | null, skipExisting?: boolean): Promise; export declare function downloadFile(url: string, outputPath: string): Promise; export declare function uploadLocalFileToGCS(storageClient: Storage, bucketName: string, source: string, destination: string, skipExisting?: boolean, retryCount?: number): Promise; export declare function downloadM3u8(storageClient: Storage, m3u8Url: string, gcpBucketName: string, localOutputDir: string | undefined, gcpTargetDir: string, baseUrl?: string | null, options?: DownloadOptions & { progress?: { completed: number; total: number; }; }): Promise[]>; //# sourceMappingURL=downloader.d.ts.map