import { type CloudFetchOptions } from "./client.js"; import { type Output } from "../shared.js"; export type CloudFetcher = (path: string, options?: CloudFetchOptions) => Promise; export interface CloudCommandOptions { output?: Output; fetcher?: CloudFetcher; home?: string; env?: Record; now?: number | (() => number); } export interface CloudCommandContext { output: Output; fetcher: CloudFetcher; home?: string; env: Record; now?: number | (() => number); } export declare function commandContext(options: CloudCommandOptions): CloudCommandContext; export declare function userOptions(args: string[], context: CloudCommandContext): CloudFetchOptions; export declare function resolveOrgId(args: string[], context: CloudCommandContext): Promise; export declare function resolveProjectId(args: string[], context: CloudCommandContext): Promise; export declare function runCommand(options: CloudCommandOptions, operation: (context: CloudCommandContext) => Promise): Promise;