import * as Cause from "effect/Cause"; import * as CliError from "effect/cli/CliError"; import * as Effect from "effect/Effect"; import * as Runtime from "effect/Runtime"; import { UserFacingError } from "../../UserFacingError.ts"; export declare const isPromptCancellation: (error: unknown) => boolean; export declare const EXIT_CANCELLED = 130; export declare const setExitCode: (code: number) => Effect.Effect; export declare const exitDeclined: Effect.Effect; export declare const suppressInterruptMessages: Effect.Effect; /** * Keep quick shutdowns quiet, but acknowledge cleanup that takes long enough * to be noticeable. The Effect runtime continues to own signal handling and * teardown; this listener only writes delayed feedback. */ export declare const installShutdownFeedback: Effect.Effect; export declare const handleCancellation: (self: Effect.Effect) => Effect.Effect; declare class ReportedCliError { readonly cause: unknown; readonly [Runtime.errorReported] = false; constructor(cause: unknown); } declare const UserInputError_base: new = {}>(args: import("effect/Types").VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => Cause.YieldableError & { readonly _tag: "UserInputError"; } & Readonly; export declare class UserInputError extends UserInputError_base<{ readonly message: string; }> { readonly [UserFacingError] = true; } export declare const handleUserErrors: (self: Effect.Effect) => Effect.Effect; export declare const handleCliErrors: (self: Effect.Effect) => Effect.Effect; export declare const failWithHelp: (commandPath: ReadonlyArray) => Effect.Effect; export {}; //# sourceMappingURL=errors.d.ts.map