export interface DieOptions { json?: boolean; hint?: string; } export declare function formatDie(msg: string, opts?: DieOptions): { stream: 'stdout' | 'stderr'; text: string; }; export declare function die(msg: string, code?: number, opts?: DieOptions): never; export declare function runOrDie(fn: () => void | Promise, opts?: DieOptions): Promise; export declare function dieFriction(surface: string, failureId: string, msg: string, code?: number, opts?: DieOptions): never; export declare function truncate(s: string, max: number): string; export declare function relTime(iso: string): string; export declare function humanDuration(ms: number): string; export declare function formatBytes(n: number): string; export declare function isPromptCancelled(err: unknown): boolean; export declare function isInteractiveTerminal(): boolean; export declare function parseCommaSeparatedList(value: string | undefined): string[]; export declare function visibleWidth(s: string): number; export declare function padRight(s: string, width: number): string; export declare function padVisible(s: string, width: number): string; export declare function isJsonMode(opts: { json?: boolean; }): boolean; export declare function readStdinSync(): string; export declare function termLink(text: string, filePath: string): string;