export type OutputFormat = 'json' | 'human' | 'raw'; /** * Parse --output flag from argv. * Returns 'json' as default when not specified. */ export declare function parseOutputFormat(argv: string[]): OutputFormat; /** BigInt-safe JSON stringify */ export declare function toJson(data: unknown, pretty?: boolean): string; /** Read a single line from stdin (for --data - support) */ export declare function readStdin(): Promise; /** Resolve a flag value, reading from stdin if value is '-' */ export declare function resolveStdinFlag(value: string): Promise; /** Check if running in interactive TTY mode (both stdin and stdout) */ export declare function isTTY(): boolean; /** Prompt user for yes/no confirmation in TTY mode */ export declare function confirmAction(message: string): Promise; /** Format key-value record as aligned table */ export declare function toHuman(data: Record, title?: string): string;