import { f as Formattable, h as LinkFormatter, l as Colors, p as Formatter } from "./whitespace.js"; //#region src/internal/ansi.d.ts /** Remove all ANSI SGR and OSC escape sequences from input. */ declare function strip(input: Formattable): string; //#endregion //#region src/internal/colors.d.ts /** * Create a color set with explicit enable toggles. * * Hyperlink emission is independent of color and defaults to the color * toggle, so `createColors(true)`/`createColors(false)` stay all-on/all-off. * Pass `hyperlinksEnabled` separately to decouple them — the auto entrypoints * do this with {@link [internal/detect.ts].detectHyperlinkSupport | detectHyperlinkSupport}. * * @see https://no-hyperlinks.org/ */ declare function createColors(enabled?: boolean, hyperlinksEnabled?: boolean): Colors; //#endregion //#region src/internal/detect.d.ts /** * Detect whether ANSI colors should be enabled. * * Precedence: explicit force (`FORCE_COLOR`/`--color`) beats explicit * disable (`NO_COLOR`/`--no-color`), which beats platform heuristics. * * @see https://force-color.org/ * @see https://no-color.org/ */ declare const detectColorSupport: () => boolean; /** * Detect whether OSC 8 hyperlinks should be emitted. * * Independent of color support (SGR color and OSC 8 links are separate * terminal capabilities). Precedence: explicit `--no-hyperlinks` / * `--hyperlinks` flags, then `NO_HYPERLINKS`, then `FORCE_HYPERLINKS`, then * TTY detection. A non-interactive stream (CI logs, pipes) gets no links, * since captured OSC 8 sequences are noise, not links. * * @see https://no-hyperlinks.org/ */ declare const detectHyperlinkSupport: () => boolean; //#endregion //#region src/internal/default.d.ts /** Auto-detecting color set — the default entrypoint. */ declare const colors: Colors; /** Set the background with a 256-color palette index. */ declare const bg256: (n: number) => Formatter; /** Set the background black. */ declare const bgBlack: Formatter; /** Set the background bright black. */ declare const bgBlackBright: Formatter; /** Set the background blue. */ declare const bgBlue: Formatter; /** Set the background bright blue. */ declare const bgBlueBright: Formatter; /** Set the background cyan. */ declare const bgCyan: Formatter; /** Set the background bright cyan. */ declare const bgCyanBright: Formatter; /** Set the background green. */ declare const bgGreen: Formatter; /** Set the background bright green. */ declare const bgGreenBright: Formatter; /** Set the background from a `#rrggbb` hex string. */ declare const bgHex: (color: string) => Formatter; /** Set the background magenta. */ declare const bgMagenta: Formatter; /** Set the background bright magenta. */ declare const bgMagentaBright: Formatter; /** Set the background red. */ declare const bgRed: Formatter; /** Set the background bright red. */ declare const bgRedBright: Formatter; /** Set the background with a 24-bit RGB triple. */ declare const bgRgb: (r: number, g: number, b: number) => Formatter; /** Set the background white. */ declare const bgWhite: Formatter; /** Set the background bright white. */ declare const bgWhiteBright: Formatter; /** Set the background yellow. */ declare const bgYellow: Formatter; /** Set the background bright yellow. */ declare const bgYellowBright: Formatter; /** Color the foreground black. */ declare const black: Formatter; /** Color the foreground bright black. */ declare const blackBright: Formatter; /** Apply blink. */ declare const blink: Formatter; /** Color the foreground blue. */ declare const blue: Formatter; /** Color the foreground bright blue. */ declare const blueBright: Formatter; /** Apply bold intensity. */ declare const bold: Formatter; /** Color the foreground cyan. */ declare const cyan: Formatter; /** Color the foreground bright cyan. */ declare const cyanBright: Formatter; /** Apply dim (faint) intensity. */ declare const dim: Formatter; /** Apply a double underline. */ declare const doubleUnderline: Formatter; /** Color the foreground with a 256-color palette index. */ declare const fg256: (n: number) => Formatter; /** Color the foreground gray. */ declare const gray: Formatter; /** Alias of {@link gray} using the British spelling. */ declare const grey: Formatter; /** Color the foreground green. */ declare const green: Formatter; /** Color the foreground bright green. */ declare const greenBright: Formatter; /** Color the foreground from a `#rrggbb` hex string. */ declare const hex: (color: string) => Formatter; /** Conceal (hide) the text. */ declare const hidden: Formatter; /** Swap foreground and background. */ declare const inverse: Formatter; /** Whether ANSI output is enabled for this instance. */ declare const isColorSupported: boolean; /** Whether OSC 8 hyperlinks are emitted for this instance. */ declare const isHyperlinkSupported: boolean; /** Apply italic style. */ declare const italic: Formatter; /** Wrap text in an OSC 8 terminal hyperlink. */ declare const link: LinkFormatter; /** Color the foreground magenta. */ declare const magenta: Formatter; /** Color the foreground bright magenta. */ declare const magentaBright: Formatter; /** Apply an overline. */ declare const overline: Formatter; /** Color the foreground red. */ declare const red: Formatter; /** Color the foreground bright red. */ declare const redBright: Formatter; /** Reset all styles and colors. */ declare const reset: Formatter; /** Color the foreground with a 24-bit RGB triple. */ declare const rgb: (r: number, g: number, b: number) => Formatter; /** Apply strikethrough. */ declare const strikethrough: Formatter; /** Apply a single underline. */ declare const underline: Formatter; /** Color the foreground white. */ declare const white: Formatter; /** Color the foreground bright white. */ declare const whiteBright: Formatter; /** Color the foreground yellow. */ declare const yellow: Formatter; /** Color the foreground bright yellow. */ declare const yellowBright: Formatter; //#endregion export { whiteBright as $, doubleUnderline as A, isHyperlinkSupported as B, blue as C, cyan as D, colors as E, grey as F, overline as G, link as H, hex as I, reset as J, red as K, hidden as L, gray as M, green as N, cyanBright as O, greenBright as P, white as Q, inverse as R, blink as S, bold as T, magenta as U, italic as V, magentaBright as W, strikethrough as X, rgb as Y, underline as Z, bgWhiteBright as _, bgBlueBright as a, strip as at, black as b, bgGreen as c, bgMagenta as d, yellow as et, bgMagentaBright as f, bgWhite as g, bgRgb as h, bgBlue as i, createColors as it, fg256 as j, dim as k, bgGreenBright as l, bgRedBright as m, bgBlack as n, detectColorSupport as nt, bgCyan as o, bgRed as p, redBright as q, bgBlackBright as r, detectHyperlinkSupport as rt, bgCyanBright as s, bg256 as t, yellowBright as tt, bgHex as u, bgYellow as v, blueBright as w, blackBright as x, bgYellowBright as y, isColorSupported as z };