import type { AnsiColorName } from "./types.js"; export type AnsiRgb = Readonly<{ r: number; g: number; b: number; }>; export type ThemePalette = Partial>; export declare const ANSI_PALETTE_HEX: Readonly>; export declare function ansiHexToRgb(hex: string): AnsiRgb | undefined; export declare function isAnsiColorName(name: string | undefined): name is AnsiColorName; export declare function ansiColorHex(name?: string, palette?: ThemePalette | null): string | undefined; export declare function ansiColorRgb(name?: string, palette?: ThemePalette | null): AnsiRgb | undefined; export declare function ansiCssVar(name: AnsiColorName): string; export declare function installAnsiPaletteCssVars(container: HTMLElement, palette?: ThemePalette | null): void;