export interface IDefaultColorMap { black: string; red: string; darkRed: string; lightRed: string; green: string; darkGreen: string; lightGreen: string; yellow: string; blue: string; magenta: string; cyan: string; white: string; teal: string; lightTeal: string; darkBlue: string; darkYellow: string; lightBlue: string; purple: string; pink: string; lightPink: string; } export declare const defaultColorMap: IDefaultColorMap; export type ColorValue = keyof IDefaultColorMap; export interface IColorConfiguration { separator: ColorValue; string: ColorValue; number: ColorValue; boolean: ColorValue; null: ColorValue; } export type ColorItemName = keyof IColorConfiguration; export declare const defaultColors: IColorConfiguration; export type BackgroundTheme = 'dark' | 'light' | 'unknown'; export declare function supportsColor(): boolean; export declare function resetBackgroundThemeCache(): void; /** * Given an object, it returns its JSON representation colored using * ANSI escape characters. * @param {(Object | string)} json - JSON object to highlighter. * @param {Colors} [colors] - A map with the ANSI characters for each supported color. * @param {ColorMap} [colorMap] - An object to configure the coloring. * @param {number} [spacing=2] - The indentation spaces. * @returns {string} Stringified JSON colored with ANSI escape characters. */ export declare function colorJson(jsonInput: any, colorsInput?: Partial, colorMap?: IDefaultColorMap, spacing?: number): string;