import type { ResolvedTerminalTheme, RgbaColor, RgbColor, TerminalColor, TerminalTheme } from './types.js'; /** Ordered xterm-compatible names for ANSI palette entries 0 through 15. */ export declare const ANSI_COLOR_NAMES: readonly ["black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "brightBlack", "brightRed", "brightGreen", "brightYellow", "brightBlue", "brightMagenta", "brightCyan", "brightWhite"]; /** Default terminal theme used when individual colors are not supplied. */ export declare const DEFAULT_THEME: Readonly; /** Error thrown when a theme contains an unsupported or malformed color. */ export declare class ThemeValidationError extends TypeError { /** Property or palette index containing the invalid color. */ readonly path: string; constructor(path: string, message: string); } /** Function that completes a 256-color palette from base colors and explicit indices. */ export type PaletteGenerator = (base: readonly RgbColor[], preserved: ReadonlySet, background: RgbColor, foreground: RgbColor, harmonious: boolean) => readonly RgbColor[]; /** Parses a color accepted by the portable Gespenst theme API. */ export declare function parseTerminalColor(value: TerminalColor, path?: string): RgbaColor; /** Serializes a terminal color as a portable CSS `rgba()` value. */ export declare function terminalColorToCss(value: TerminalColor): string; /** Resolves defaults, validates colors, and produces a complete palette. */ export declare function resolveTerminalTheme(theme?: TerminalTheme, generatePalette?: PaletteGenerator): ResolvedTerminalTheme; /** Returns a detached theme patch suitable for storing or exposing publicly. */ export declare function cloneTerminalTheme(theme: TerminalTheme): TerminalTheme; /** Merges a theme patch without mutating either input. */ export declare function mergeTerminalTheme(theme: TerminalTheme, patch: TerminalTheme): TerminalTheme; //# sourceMappingURL=theme.d.ts.map