/** * Get a human-readable string for a date that also fits into CLIs well (fixed-width) */ export declare function prettyDate(date: Date): string; export declare let _debugOutput: boolean; /** * Enable or disable debug output. */ export declare function _setDebugOutput(enabled: boolean): void; export declare function start(message: string): Disposable; export declare let progress: (value: number, max: number, message?: any, valueText?: string) => void; export declare let done: (noPrint?: boolean) => void; export interface ProgressIO { start(message: string): void; progress(value: number, max: number, message?: any, valueText?: string): void; done(noPrint?: boolean): void; } export declare function useProgress(io: ProgressIO): void; export declare let debug: (...args: any[]) => void; export declare let log: (...args: any[]) => void; export declare let info: (...args: any[]) => void; export declare let warn: (...args: any[]) => void; export declare let error: (...args: any[]) => void; export interface ConsoleLike { debug(...args: any[]): void; log(...args: any[]): void; info(...args: any[]): void; warn(...args: any[]): void; error(...args: any[]): void; } export declare function useOutput(output: ConsoleLike): void; export declare function warnOnce(...args: any[]): void; /** * This is a factory for handling errors when performing operations. * The handler will allow the parent scope to continue if certain errors occur, * rather than fatally exiting. */ export declare function someWarnings(...allowList: [RegExp, string?][]): (error: string | Error) => void; export declare function errorText(error: unknown): string; /** @hidden @internal for other APIs that take a `Console` but check `.constructor.name` */ export declare const constructor: { name: string; };