import type { Output } from './output/output.js'; /** * Thrown when the CLI needs input it cannot prompt for. */ export declare class NonInteractiveError extends Error { name: string; } /** * Thrown when the user dismisses a prompt with ctrl-c or escape instead of * answering it. */ export declare class PromptCancelledError extends Error { constructor(); } /** * Thrown when the arguments do not name something the CLI can run. */ export declare class UsageError extends Error { name: string; /** What to run instead, reported after the message. */ readonly hint: string; constructor(message: string, { hint }?: { hint?: string; }); } /** * Report a failure and set the exit code: usage mistakes read as one line * with a hint, environment overrides without a stack trace, and anything * else as an unexpected CLI error. */ export declare const reportErrorAndExit: (e: unknown, output: Output) => void;