import type { EventFormat } from "../events/index.js"; 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; } /** * The keys of a `` positional: commander rejects the invocation * before the action runs unless at least one was given. */ export type KeyList = [string, ...string[]]; 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; ifMatch?: string; ifNoneMatch?: boolean; } export declare const runUpload: (opts: UploadCmdOpts) => Promise; export interface DownloadCmdOpts extends CommonRunOpts { keys: KeyList; out?: string; stdout?: boolean; outDir?: string; range?: string; concurrency?: number; stopOnError?: boolean; ifMatch?: string; } export declare const runDownload: (opts: DownloadCmdOpts) => Promise; export interface HeadCmdOpts extends CommonRunOpts { keys: KeyList; concurrency?: number; stopOnError?: boolean; } export declare const runHead: (opts: HeadCmdOpts) => Promise; export interface ExistsCmdOpts extends CommonRunOpts { keys: KeyList; concurrency?: number; stopOnError?: boolean; } export declare const runExists: (opts: ExistsCmdOpts) => Promise; export interface DeleteCmdOpts extends CommonRunOpts { keys: KeyList; concurrency?: number; stopOnError?: boolean; ifMatch?: string; } export declare const runDelete: (opts: DeleteCmdOpts) => Promise; export interface CopyCmdOpts extends CommonRunOpts { from: string; to: string; ifMatch?: string; ifNoneMatch?: boolean; destIfMatch?: 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 EventsParseCmdOpts extends CommonRunOpts { /** The delivery to parse; stdin when omitted. */ file?: string; /** Read this format, overriding (or standing in for) the provider's. */ format?: EventFormat; /** * Delivery headers as `name: value`, for formats that read them (Appwrite * puts the event type in `X-Appwrite-Webhook-Events`). */ header?: string[]; } /** * Print the `FileEvent`s a notification delivery normalizes to — for * debugging a payload before wiring up `files-sdk/events`. A configured * provider supplies the adapter (its bucket, its `--key-prefix` key mapping, * the config some parsers read) and, unless `--format` overrides it, the * format. With only `--format`, no provider is needed. */ export declare const runEventsParse: (opts: EventsParseCmdOpts) => 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