import { Command } from "commander"; import type { BlobS3Credentials } from "../../types.js"; import type { Sleep } from "./retry.js"; export interface FetchBlobCredentialsOptions { /** * How many times a 401 may be retried. A bucket that was created moments ago * can exist in the Developer API before the Blob worker has provisioned it, * and the worker answers 401 during that window. */ unauthorizedRetries?: number; } export declare function fetchBlobCredentials(token: string, pause?: Sleep, options?: FetchBlobCredentialsOptions): Promise; interface BucketTokenSource { token: string; /** Retry 401s for buckets that may still be provisioning; 0 for ambient tokens. */ unauthorizedRetries: number; } export declare function resolveBucketToken(flags: { bucketId?: string; token?: string; }, command: Command): Promise; export declare function registerBlobCredentials(blob: Command): void; export {}; //# sourceMappingURL=credentials.d.ts.map