import type { ApiResponse } from '../types.js'; /** * Name the operands of `gsk aidrive download [local-path]`: * first is the source, second the destination. With `explicitDrivePath` from * `--path`/`-p`, the first operand is the destination instead. */ export declare function resolveAidriveDownloadOperands(operands: readonly string[], explicitDrivePath?: string): { drivePath?: string; localPath?: string; }; /** * Accept either spelling of an AI-Drive location — `aidrive:///a/b.pdf` (how * attachments arrive) or the plain `/a/b.pdf` — and return the plain path the * API takes. A path without the scheme passes through untouched. */ export declare function normalizeDrivePath(pathOrUrl: string): string; /** * Pull the signed download URL out of a `get_readable_url` response. * `data.result` is prose ("Readable URL for : ") and not meant to * be parsed; the structured value lives in `session_state.aidrive_result`. */ export declare function extractReadableUrl(response: Pick): string | undefined; /** * A file-wrapper URL carrying its own access token is already the final, * fetchable URL. Sending it through `/file/download` re-checks ownership and * incorrectly rejects files the caller may read through a Drive share. * Token-less wrapper URLs still need the resolver used by other CLI exports. */ export declare function shouldResolveFileWrapperUrl(url: string): boolean; //# sourceMappingURL=aidrive-download.d.ts.map