import type { Readable } from 'node:stream'; export type CliKeySecretCredentials = { authKey: string; authSecret: string; }; export type CliAuthToken = { authToken: string; }; export type CliAuth = CliKeySecretCredentials | CliAuthToken; export type ResolvedCliConfig = { auth?: CliAuth; credentials?: CliKeySecretCredentials; credentialsEndpoint?: string; endpoint?: string; loadError?: string; }; export declare function buildMissingCredentialsMessage(): string; export declare function buildMissingAuthMessage(): string; export declare function loadProjectDotenvIntoProcessEnv(): string | undefined; export declare function resolveCliConfig(): ResolvedCliConfig; type RequireCliCredentialsResult = { ok: true; credentials: CliKeySecretCredentials; } | { ok: false; error: string; }; export declare function requireCliCredentials(): RequireCliCredentialsResult; export declare function createReadStream(file: string): Readable; export declare function streamToBuffer(stream: Readable): Promise; export interface CliInputResult { content: string | null; isStdin: boolean; path?: string; } export interface ReadCliInputOptions { inputPath?: string; providedInput?: string; allowStdinWhenNoPath?: boolean; } export declare function readCliInput(options: ReadCliInputOptions): Promise; export declare function formatAPIError(err: unknown): string; /** @public */ export type { APIError } from './types.ts'; export declare function zip(listA: A[], listB: B[]): [A, B][]; export declare function zip(...lists: T[][]): T[][]; //# sourceMappingURL=helpers.d.ts.map