import { colorNames } from '../data/colorNames.compiled.json'; export type ColorName = keyof typeof colorNames; export declare enum Target { Foreground = 0, Background = 10, Clear = 11 } export type RGB = { R: number; G: number; B: number; }; export declare function hexToRgb(hex: string): RGB; export declare function getClosestColor16(color: RGB): number; export declare function getClosestColor256(color: RGB): number; export declare function getTrueColorSequence(color: RGB, target: Target): string; export declare function get256ColorsSequence(index: number, target: Target): string; export declare function get16ColorsSequence(index: number, target: Target): string; export declare const hexToRgbMemo: (arg: string) => RGB; export declare const hexTo256ColorsMemo: (arg: string) => number; export declare const hexTo16ColorsMemo: (arg: string) => number; export declare const getHexColorSequence: (color: string, target: Target) => string; export declare const getNamedColorSequence: (name: ColorName, target: Target) => string; export declare function resolveColorToRgb(color: ColorName | string): { R: number; G: number; B: number; }; export declare function getColorSequence(color: ColorName | string, target: Target): string; export declare const getColorResetSequence: (target: Target) => string;