export interface CommandError { message: string; cause?: string; reason?: string; recoverable: boolean; nextActions: string[]; } export interface CommandSuccess { ok: true; action: string; data: T; error?: never; } export interface CommandFailure { ok: false; action: string; data?: never; error: CommandError; } export type CommandResult = CommandSuccess | CommandFailure; export declare function ok(action: string, data: T): CommandResult; export interface FailOptions { cause?: unknown; reason?: string; recoverable?: boolean; nextActions?: string[]; } export declare function fail(action: string, message: string, options?: FailOptions): CommandFailure;