/** * Raised when flags or environment values resolve to an invalid app * configuration. Mapped to `SYS_EXITS.config` (78) by * {@link createSysExitFailureMapper} so misconfiguration stays distinct from * unexpected software failures (70). * * Apps may throw this class directly, subclass it (the mapper's `instanceof` * ladder matches subclasses), or keep their own error classes and enroll them * through the factory's options. */ export declare class CliConfigError extends Error { constructor(message: string, options?: ErrorOptions); } /** * Raised when input data — a payload, a file, a record — was well-formed as an * invocation but incorrect as data. Mapped to `SYS_EXITS.dataErr` (65) by * {@link createSysExitFailureMapper}. */ export declare class CliDataError extends Error { constructor(message: string, options?: ErrorOptions); } /** * Raised for a mis-invocation the parser accepted but the command surface * rejects — for example a stray positional token reaching a `$0` handler. * Mapped to `SYS_EXITS.usage` (64) by {@link createSysExitFailureMapper} by * error class, so the exit code never depends on whether a parser-level check * happened to surface first. */ export declare class CliUsageError extends Error { constructor(message: string, options?: ErrorOptions); } /** * The message plus its `cause` chain — a bare "fetch failed" names no host, but * its cause carries the address and errno an operator actually needs. Used for * the operator-facing one-liner on a `usage` / `config` exit, where a stack * trace through an app's own internals is pure noise. * @param error The failure to describe. * @returns The message chain, innermost cause last, joined by `←`. */ export declare function describeError(error: unknown): string; //# sourceMappingURL=cliErrors.d.ts.map