/** * Standard error codes for the CLI. */ export declare const ErrorCodes: { readonly NOT_AUTHENTICATED: "NOT_AUTHENTICATED"; readonly INVALID_API_KEY: "INVALID_API_KEY"; readonly NOT_FOUND: "NOT_FOUND"; readonly ALREADY_EXISTS: "ALREADY_EXISTS"; readonly INVALID_INPUT: "INVALID_INPUT"; readonly MISSING_REQUIRED_FIELD: "MISSING_REQUIRED_FIELD"; readonly API_ERROR: "API_ERROR"; readonly RATE_LIMITED: "RATE_LIMITED"; readonly CONFIG_ERROR: "CONFIG_ERROR"; readonly UNKNOWN_ERROR: "UNKNOWN_ERROR"; }; export type ErrorCode = (typeof ErrorCodes)[keyof typeof ErrorCodes]; /** * CLI-specific error class that produces structured JSON output. */ export declare class CliError extends Error { readonly code: ErrorCode; readonly details?: Record | undefined; constructor(code: ErrorCode, message: string, details?: Record | undefined); toResponse(): import("./types.js").ErrorResponse; print(): void; } /** * Handle any error and convert to structured output. */ export declare const handleError: (err: unknown) => void;