/** * ANSI styling, and the switch that turns it off. * * `Bun.enableANSIColors` is the capability check rather than a `TERM` sniff: it is * false under `NO_COLOR` and for a non-TTY, and it cannot be faked in-process. * Tests construct one with the switch off and assert on plain text. */ export declare class Style { #private; constructor(enabled?: boolean); accent(text: string): string; muted(text: string): string; danger(text: string): string; warn(text: string): string; bold(text: string): string; /** Reverse video, which is how the text cursor is drawn over a character. */ invert(text: string): string; /** An arbitrary colour, for the one place a gradient needs more than four. */ hex(colour: string, text: string): string; /** * Clipped to `width` columns, measured the way a terminal measures them. * `Bun.stringWidth` counts columns rather than code units, and `Bun.sliceAnsi` * cuts by the same measure without severing an escape sequence. */ clip(text: string, width: number): string; }