import { C as TextChunk, _ as Rope, a as Chunk, b as StyledChunk, c as Chunkable, f as Formattable, i as CHUNK_BRAND, m as FormatterName, n as tab, o as ChunkFormatter, s as ChunkPalette, t as space, u as ConcatChunk, y as StyleName } from "./whitespace.js"; //#region src/rope.d.ts /** Create a text leaf chunk. */ declare const text: (input: Formattable) => Chunk; /** Concatenate chunks/values into a single chunk (O(1) per node). */ declare const concat: (...inputs: readonly Chunkable[]) => Chunk; /** Render a chunk tree (or plain value) to a string. */ declare const render: (input: Chunkable) => string; /** Create a rope color set with explicit enabled/disabled toggle. */ declare function createRope(enabled?: boolean): Rope; /** Rope builder set — O(1) styled composition, O(n) render. */ declare const rope: Rope; /** Set the background with a 256-color palette index. */ declare const bg256: (n: number) => ChunkFormatter; /** Set the background black. */ declare const bgBlack: ChunkFormatter; /** Set the background bright black. */ declare const bgBlackBright: ChunkFormatter; /** Set the background blue. */ declare const bgBlue: ChunkFormatter; /** Set the background bright blue. */ declare const bgBlueBright: ChunkFormatter; /** Set the background cyan. */ declare const bgCyan: ChunkFormatter; /** Set the background bright cyan. */ declare const bgCyanBright: ChunkFormatter; /** Set the background green. */ declare const bgGreen: ChunkFormatter; /** Set the background bright green. */ declare const bgGreenBright: ChunkFormatter; /** Set the background from a `#rrggbb` hex string. */ declare const bgHex: (color: string) => ChunkFormatter; /** Set the background magenta. */ declare const bgMagenta: ChunkFormatter; /** Set the background bright magenta. */ declare const bgMagentaBright: ChunkFormatter; /** Set the background red. */ declare const bgRed: ChunkFormatter; /** Set the background bright red. */ declare const bgRedBright: ChunkFormatter; /** Set the background with a 24-bit RGB triple. */ declare const bgRgb: (r: number, g: number, b: number) => ChunkFormatter; /** Set the background white. */ declare const bgWhite: ChunkFormatter; /** Set the background bright white. */ declare const bgWhiteBright: ChunkFormatter; /** Set the background yellow. */ declare const bgYellow: ChunkFormatter; /** Set the background bright yellow. */ declare const bgYellowBright: ChunkFormatter; /** Color the foreground black. */ declare const black: ChunkFormatter; /** Color the foreground bright black. */ declare const blackBright: ChunkFormatter; /** Apply blink. */ declare const blink: ChunkFormatter; /** Color the foreground blue. */ declare const blue: ChunkFormatter; /** Color the foreground bright blue. */ declare const blueBright: ChunkFormatter; /** Apply bold intensity. */ declare const bold: ChunkFormatter; /** Color the foreground cyan. */ declare const cyan: ChunkFormatter; /** Color the foreground bright cyan. */ declare const cyanBright: ChunkFormatter; /** Apply dim (faint) intensity. */ declare const dim: ChunkFormatter; /** Apply a double underline. */ declare const doubleUnderline: ChunkFormatter; /** Color the foreground with a 256-color palette index. */ declare const fg256: (n: number) => ChunkFormatter; /** Color the foreground gray. */ declare const gray: ChunkFormatter; /** Alias of {@link gray} using the British spelling. */ declare const grey: ChunkFormatter; /** Color the foreground green. */ declare const green: ChunkFormatter; /** Color the foreground bright green. */ declare const greenBright: ChunkFormatter; /** Color the foreground from a `#rrggbb` hex string. */ declare const hex: (color: string) => ChunkFormatter; /** Conceal (hide) the text. */ declare const hidden: ChunkFormatter; /** Swap foreground and background. */ declare const inverse: ChunkFormatter; /** Whether ANSI output is enabled for this instance. */ declare const isColorSupported: boolean; /** Apply italic style. */ declare const italic: ChunkFormatter; /** Color the foreground magenta. */ declare const magenta: ChunkFormatter; /** Color the foreground bright magenta. */ declare const magentaBright: ChunkFormatter; /** Apply an overline. */ declare const overline: ChunkFormatter; /** Color the foreground red. */ declare const red: ChunkFormatter; /** Color the foreground bright red. */ declare const redBright: ChunkFormatter; /** Reset all styles and colors. */ declare const reset: ChunkFormatter; /** Color the foreground with a 24-bit RGB triple. */ declare const rgb: (r: number, g: number, b: number) => ChunkFormatter; /** Apply strikethrough. */ declare const strikethrough: ChunkFormatter; /** Apply a single underline. */ declare const underline: ChunkFormatter; /** Color the foreground white. */ declare const white: ChunkFormatter; /** Color the foreground bright white. */ declare const whiteBright: ChunkFormatter; /** Color the foreground yellow. */ declare const yellow: ChunkFormatter; /** Color the foreground bright yellow. */ declare const yellowBright: ChunkFormatter; //#endregion export { CHUNK_BRAND, type Chunk, type ChunkFormatter, type ChunkPalette, type Chunkable, type ConcatChunk, type Formattable, type FormatterName, type Rope, type StyleName, type StyledChunk, type TextChunk, bg256, bgBlack, bgBlackBright, bgBlue, bgBlueBright, bgCyan, bgCyanBright, bgGreen, bgGreenBright, bgHex, bgMagenta, bgMagentaBright, bgRed, bgRedBright, bgRgb, bgWhite, bgWhiteBright, bgYellow, bgYellowBright, black, blackBright, blink, blue, blueBright, bold, concat, createRope, cyan, cyanBright, rope as default, dim, doubleUnderline, fg256, gray, green, greenBright, grey, hex, hidden, inverse, isColorSupported, italic, magenta, magentaBright, overline, red, redBright, render, reset, rgb, space, strikethrough, tab, text, underline, white, whiteBright, yellow, yellowBright };