/** * Enables or disables verbose logging mode. * When enabled, debug messages will be printed to stderr. * * @param enabled - Whether to enable verbose mode. */ export declare function setVerbose(enabled: boolean): void; /** * Checks if verbose mode is currently enabled. * * @returns `true` if verbose mode is enabled, `false` otherwise. */ export declare function isVerbose(): boolean; /** * Logs a fatal error message and terminates the process. * The message is displayed in bold red text. * * @param text - The error message to display. * @returns Never returns as the process is terminated. */ export declare function panic(text: string): never; /** * Logs a warning message to stderr. * The message is displayed in bold yellow text. * * @param text - The warning message to display. */ export declare function warn(text: string): void; /** * Logs an informational message to stderr. * * @param text - The informational message to display. */ export declare function info(text: string): void; /** * Logs a debug message to stderr if verbose mode is enabled. * The message is displayed in gray text. * * @param text - The debug message to display. */ export declare function debug(text: string): void; /** * Logs an abort message and terminates the process with exit code 1. * * @returns Never returns as the process is terminated. */ export declare function abort(): never; /** * Executes an async operation with progress indication. * Displays a spinner-like message while the operation is in progress, * then shows a success checkmark or failure X based on the result. * * @typeParam T - The return type of the promise. * @param message - The message to display while the operation is running. * @param promise - The promise to await, or a function that returns a promise. * @returns The resolved value of the promise. * @throws Calls `panic()` if the promise rejects, terminating the process. * * @example * ```ts * const result = await check('Fetching data', fetchData()); * const result = await check('Processing', async () => processData()); * ``` */ export declare function check(message: string, promise: Promise | (() => Promise)): Promise;