import type { Palette } from "../deploy/index.js"; export declare const ExitCodes: { readonly Success: 0; readonly GenericError: 1; readonly InvalidUsage: 2; readonly NotAuthenticated: 3; readonly PermissionDenied: 4; readonly NotFound: 5; }; export type ExitCode = (typeof ExitCodes)[keyof typeof ExitCodes]; /** For the human-facing lines this CLI writes to stderr (info/success/spinner). */ export declare const colors: Palette; /** * For a command whose *result* goes to stdout (`info`, `cookbook`). Gating those * on stderr would leak escape codes into a pipe whenever stderr happened to be * a terminal, and drop the colour when only stdout was one. */ export declare const stdoutColors: Palette; export declare function outputJson(value: unknown): void; export declare function info(message: string): void; export declare function success(message: string): void; export declare function confirm(question: string): Promise; export type FailWithOpts = { code?: ExitCode; extra?: Record; }; export declare function failWith(message: string, opts?: FailWithOpts): never; export type Spinner = { update: (message: string) => void; log: (line: string) => void; stop: () => void; }; export declare function startSpinner(message: string): Spinner; type HandleApiCallOpts = { spinner?: string | false; }; export declare function handleApiCall(fn: () => Promise, opts?: HandleApiCallOpts): Promise; export {}; //# sourceMappingURL=io.d.ts.map