import { CommandError } from '@twak/core'; export declare function output(data: unknown, json: boolean): void; export declare function success(message: string): void; export declare function error(message: string): void; export declare function warn(message: string): void; export declare function info(message: string): void; export declare function dim(message: string): void; /** * Classify an error into a `CommandError` — pure, no side effects. * * Flow: * 1. If already a CommandError → return unchanged (preserves subclass identity). * 2. Else try the classifier chain: TwakError → fs → wallet-load. * 3. Else → CommandError('UNKNOWN_ERROR', rawMessage). * * Use when you need the typed code but want to control how it's surfaced * (e.g. the watch daemon logs classified tick errors without setting exitCode). */ export declare function classifyError(err: unknown): CommandError; /** * Standard error handler for command action blocks. * * Output: * - json=true: emit a single JSON object to stdout: { error, errorCode }. * - json=false: print human message to stderr. Unknown errors get prefixed with * `${fallbackPrefix}: ...` so the user knows the command failed even if * the raw message is opaque. * * Always sets process.exitCode = 1. */ export declare function handleCommandError(err: unknown, json: boolean, fallbackPrefix: string): void; export declare function safeExit(): void; //# sourceMappingURL=output.d.ts.map