/** * Shared terminal styling, so every ccx screen looks like the same tool. * Colour is opt-in per call: callers pass whether the output is a real terminal, * which keeps piped output clean and testable. */ export declare const codes: { reset: string; bold: string; dim: string; green: string; yellow: string; red: string; cyan: string; magenta: string; brightGreen: string; brightYellow: string; brightRed: string; brightCyan: string; }; /** * Colour on a scale from plenty to spent. * * Deliberately four bands rather than "dim until it is nearly gone". Everything * below 90 percent used to render the same shade of grey, which made a page of * numbers read as one flat block and hid the difference between an account at 5 * percent and one at 85. */ export declare function shadeForUsed(used: number | null): string; /** Wrap `text` in an ANSI code when colour is on. */ export declare function paint(text: string, code: string, color: boolean): string; /** A dim horizontal rule of the given width. */ export declare function rule(width: number, color: boolean): string;