import type { SearchMatch } from "../index.js"; import type { OutputOpts } from "./io.js"; import type { GlobalCliOptions } from "./loader.js"; export interface CommonRunOpts extends OutputOpts { dryRun: boolean; global: GlobalCliOptions; } export interface UploadCmdOpts extends CommonRunOpts { key?: string; file?: string; stdin?: boolean; dir?: string; contentType?: string; cacheControl?: string; metadata?: readonly string[]; multipart?: boolean; partSize?: number; multipartConcurrency?: number; concurrency?: number; stopOnError?: boolean; } export declare const runUpload: (opts: UploadCmdOpts) => Promise; export interface DownloadCmdOpts extends CommonRunOpts { keys: string[]; out?: string; stdout?: boolean; outDir?: string; range?: string; concurrency?: number; stopOnError?: boolean; } export declare const runDownload: (opts: DownloadCmdOpts) => Promise; export interface HeadCmdOpts extends CommonRunOpts { keys: string[]; concurrency?: number; stopOnError?: boolean; } export declare const runHead: (opts: HeadCmdOpts) => Promise; export interface ExistsCmdOpts extends CommonRunOpts { keys: string[]; concurrency?: number; stopOnError?: boolean; } export declare const runExists: (opts: ExistsCmdOpts) => Promise; export interface DeleteCmdOpts extends CommonRunOpts { keys: string[]; concurrency?: number; stopOnError?: boolean; } export declare const runDelete: (opts: DeleteCmdOpts) => Promise; export interface CopyCmdOpts extends CommonRunOpts { from: string; to: string; } export declare const runCopy: (opts: CopyCmdOpts) => Promise; export interface MoveCmdOpts extends CommonRunOpts { from: string; to: string; } export declare const runMove: (opts: MoveCmdOpts) => Promise; export interface ListCmdOpts extends CommonRunOpts { prefix?: string; cursor?: string; limit?: number; delimiter?: string; all?: boolean; } export declare const runList: (opts: ListCmdOpts) => Promise; export interface SearchCmdOpts extends CommonRunOpts { pattern: string; match?: SearchMatch; regex?: boolean; prefix?: string; limit?: number; maxResults?: number; caseInsensitive?: boolean; } export declare const runSearch: (opts: SearchCmdOpts) => Promise; export interface UrlCmdOpts extends CommonRunOpts { key: string; expiresIn?: number; responseContentDisposition?: string; } export declare const runUrl: (opts: UrlCmdOpts) => Promise; export declare const runCapabilities: (opts: CommonRunOpts) => Promise; export interface SignUploadCmdOpts extends CommonRunOpts { key: string; expiresIn: number; contentType?: string; maxSize?: number; minSize?: number; } export declare const runSignUpload: (opts: SignUploadCmdOpts) => Promise; export interface TransferCmdOpts extends CommonRunOpts { /** Destination provider config as JSON — a {@link GlobalCliOptions} blob. */ to: string; prefix?: string; /** `false` only when `--no-overwrite` was passed; otherwise overwrite (the default). */ overwrite?: boolean; limit?: number; concurrency?: number; stopOnError?: boolean; } export declare const runTransfer: (opts: TransferCmdOpts) => Promise; export interface SyncCmdOpts extends CommonRunOpts { /** Destination provider config as JSON — a {@link GlobalCliOptions} blob. */ to: string; prefix?: string; destPrefix?: string; /** Mirror mode — delete destination keys the source no longer has. */ prune?: boolean; /** Change detection. The function form of `compare` isn't reachable from a flag. */ compare?: "etag" | "size"; limit?: number; concurrency?: number; stopOnError?: boolean; } export declare const runSync: (opts: SyncCmdOpts) => Promise; //# sourceMappingURL=commands.d.ts.map