/** * Chalk Color Adapter - Chalk.js implementation of the color styling adapter * * This is a concrete implementation of ColorAdapter using the Chalk library. * The interfaces are defined separately to allow for other implementations (colors, kleur, etc.) * * Benefits: * - Implements library-agnostic ColorAdapter interface * - Can be swapped with other implementations without changing consumers * - Provides the familiar Chalk API through the adapter */ import type { ChainableColorFn, Color, ColorAdapter, Modifier } from './color-adapter.interface.js'; /** * Chalk Adapter Implementation * * Concrete implementation of ColorAdapter using the Chalk library. */ export declare class ChalkAdapter implements ColorAdapter { /** * Color mapping to chalk functions */ private readonly colorMap; /** * Modifier mapping to chalk functions */ private readonly modifierMap; /** * Whether colors are disabled (NO_COLOR environment variable) */ private readonly noColor; constructor(); color(color: Color, text: string): string; colorModifier(color: Color, modifier: Modifier, text: string): string; getColorFn(color: Color): ChainableColorFn; getRawFn(path: string): (text: string) => string; modifier(modifier: Modifier, text: string): string; blue(text: string): string; bold(text: string): string; cyan(text: string): string; dim(text: string): string; gray(text: string): string; green(text: string): string; inverse(text: string): string; italic(text: string): string; magenta(text: string): string; red(text: string): string; underline(text: string): string; white(text: string): string; yellow(text: string): string; } /** * Default adapter instance factory * This is used by the getColorAdapter function in the interface */ export declare function createDefaultColorAdapter(): ColorAdapter; //# sourceMappingURL=color-adapter.d.ts.map