/** * Marker for error classes whose `message` is written for end users. The CLI's * top-level handler prints a marked error's `message` as a single friendly * line instead of dumping the raw cause chain. * * Mark a class by assigning the symbol in the class body: * * ```ts * export class MyError extends Data.TaggedError("MyError")<{ * readonly message: string; * }> { * readonly [UserFacingError] = true; * } * ``` * * Classes without a human-readable `message` prop derive one with a getter * (see `AlchemistNotFound` in `Alchemist/Errors.ts`). */ export declare const UserFacingError: unique symbol; /** An error carrying a human-readable `message` that is safe to print as-is. */ export interface UserFacingError { readonly [UserFacingError]: true; readonly message: string; } export declare const isUserFacing: (error: unknown) => error is UserFacingError; //# sourceMappingURL=UserFacingError.d.ts.map