import type { AssetFormat } from "../types/config.js"; import type { FigmaClient } from "../figma/client.js"; export interface DownloadSettings { format: AssetFormat; scale: number; downloadSpeed: number; version?: string; } export interface DownloadTask { nodeId: string; canonicalName: string; outputPath: string; settings: DownloadSettings; } export interface DownloadResult { task: DownloadTask; outputPath: string; contentHash: string; sizeBytes: number; } export declare class AssetDownloader { private client; private lastImageRequestAt; constructor(client: FigmaClient); downloadAssets(fileKey: string, tasks: DownloadTask[], onProgress?: (current: number, total: number) => void): Promise; private waitForRateLimit; private groupByRequestParams; private batchArray; private mapFormatToFigma; }