export interface DownloadOptions { documentId: number; versionUuid: string | null; destination: string; expectedSize: number | null; signal: AbortSignal; maxAttempts?: number; idleTimeoutMs?: number; connectTimeoutMs?: number; } /** * Streams one document to `destination`. The bytes go to `.part` first, so a * half-written file never carries the final name. An abort leaves the `.part` file in place. */ export declare function downloadDocument(opts: DownloadOptions): Promise<{ bytes: number; }>; //# sourceMappingURL=download.d.ts.map