import type { Formatter } from 'picocolors/types.js'; export type { Formatter }; export declare const ansiEscape = "\u001B["; /** * DO NOT call this except in `TaskReporter`! (otherwise updates won't be respected everywhere) * * Change whether log functions using ANSI escape codes (such as colors and progress) should be disabled. * If disabled, color functions will just return the text passed in. */ export declare function setAnsiDisabled(disabled: boolean): void; export declare function stripAnsi(text: string): string; /** * Count the number of visible terminal lines a string occupies, accounting for ANSI escape * sequences (which have zero width) and line wrapping at the given column width. * * NOTE: This does not account for tab characters, because they're relatively uncommon in * terminal output and not directly used by Cloudpack. Also doesn't account for wide characters, * but the heuristic is probably good enough for most cases. */ export declare function visibleLineCount(text: string, columns: number): number; export declare function moveUpLines(count?: number): void; export declare function moveDownLines(count?: number): void; /** * Writes a string with rgb color gradient, defaulting from red to orange. */ export declare function gradient(text: string, from?: readonly [number, number, number], to?: readonly [number, number, number]): string; export declare function clearLine(): void; export declare function clearScreen(): void; export declare const red: Formatter; export declare const lightRed: Formatter; export declare const green: Formatter; export declare const lightGreen: Formatter; export declare const yellow: Formatter; export declare const lightYellow: Formatter; export declare const blue: Formatter; export declare const lightBlue: Formatter; export declare const magenta: Formatter; export declare const lightMagenta: Formatter; export declare const cyan: Formatter; export declare const lightCyan: Formatter; /** This uses the "white" code which is usually light grey */ export declare const white: Formatter; /** This uses the "bright white" code which is is usually white */ export declare const lightWhite: Formatter; export declare const black: Formatter; /** This uses the "bright black" code which is usually dark grey */ export declare const darkGrey: Formatter; /** This uses the "white" code which is usually light grey */ export declare const lightGrey: Formatter; export declare const bold: Formatter; //# sourceMappingURL=ansiHelpers.d.ts.map