/** * Equals true when `process.stdout` is a TTY. * * When false, the `clear` and `spin` functions do nothing, * and `MistyTask` methods are restricted to append-only logs. */ declare const isInteractive: boolean; /** Write to the current line */ declare const print: { (buffer: string | Uint8Array, cb?: ((err?: Error | undefined) => void) | undefined): boolean; (str: string | Uint8Array, encoding?: BufferEncoding | undefined, cb?: ((err?: Error | undefined) => void) | undefined): boolean; }; /** * Log a yellow message prefixed by `[!]` */ declare function warn(msg: string): void; /** Print a warning at most once */ declare function warnOnce(msg: string): void; /** * Log an error message and call `process.exit(1)` */ declare function fatal(...args: any[]): never; /** * Log a message prefixed by a green ✔︎ */ declare function success(...args: any[]): void; /** Clear the screen and its history */ declare function clear(): void; /** Clear a number of lines above the cursor */ declare function clear(lines: number): void; /** Format an elapsed time (in milliseconds) to a human-readable string */ declare function formatElapsed(start: number): string; export { clear, fatal, formatElapsed, isInteractive, print, success, warn, warnOnce };