import { LogLevel } from '../types/index.js'; /** * ANSI color codes for terminal styling */ export declare const ANSI_CODES: { readonly black: 30; readonly red: 31; readonly green: 32; readonly yellow: 33; readonly blue: 34; readonly magenta: 35; readonly cyan: 36; readonly white: 37; readonly brightBlack: 90; readonly brightRed: 91; readonly brightGreen: 92; readonly brightYellow: 93; readonly brightBlue: 94; readonly brightMagenta: 95; readonly brightCyan: 96; readonly brightWhite: 97; readonly bgBlack: 40; readonly bgRed: 41; readonly bgGreen: 42; readonly bgYellow: 43; readonly bgBlue: 44; readonly bgMagenta: 45; readonly bgCyan: 46; readonly bgWhite: 47; readonly bgBrightBlack: 100; readonly bgBrightRed: 101; readonly bgBrightGreen: 102; readonly bgBrightYellow: 103; readonly bgBrightBlue: 104; readonly bgBrightMagenta: 105; readonly bgBrightCyan: 106; readonly bgBrightWhite: 107; readonly reset: 0; readonly bold: 1; readonly dim: 2; readonly italic: 3; readonly underline: 4; readonly blink: 5; readonly inverse: 7; readonly hidden: 8; readonly strikethrough: 9; readonly resetBold: 22; readonly resetDim: 22; readonly resetItalic: 23; readonly resetUnderline: 24; readonly resetBlink: 25; readonly resetInverse: 27; readonly resetHidden: 28; readonly resetStrikethrough: 29; }; /** * ANSI color presets for different log levels */ export declare const ANSI_LEVEL_STYLES: Record; /** * Applies ANSI styling to text */ export declare function ansiStyle(text: string, codes: number[]): string; /** * Applies color to text */ export declare function ansiColor(text: string, color: number): string; /** * Applies background color to text */ export declare function ansiBackground(text: string, bg: number, color?: number): string; /** * Makes text bold */ export declare function ansiBold(text: string): string; /** * Makes text dim */ export declare function ansiDim(text: string): string; /** * Underlines text */ export declare function ansiUnderline(text: string): string; /** * Specialized formatters for different contexts */ /** * Format timestamp for terminal */ export declare function formatTimestampANSI(timestamp: string): string; /** * Format log level for terminal */ export declare function formatLogLevelANSI(level: LogLevel, useEmojis?: boolean): string; /** * Format success message for terminal */ export declare function formatSuccessANSI(message: string, useEmojis?: boolean): string; /** * Format prefix for terminal */ export declare function formatPrefixANSI(prefix: string): string; /** * Format file location for terminal */ export declare function formatLocationANSI(location: string): string; /** * Format build-specific messages */ export declare const BUILD_FORMATTERS: { /** * Format compilation step */ compilation: (step: string, status?: "starting" | "completed" | "failed") => string; /** * Format warning message */ warning: (message: string) => string; /** * Format error message */ error: (message: string) => string; /** * Format success message */ success: (message: string) => string; /** * Format info message */ info: (message: string) => string; }; /** * Terminal-friendly emoji alternatives for environments that don't support them */ export declare const EMOJI_ALTERNATIVES: { '\uD83D\uDD0D': string; ℹ️: string; '\u26A0\uFE0F': string; '\u274C': string; '\uD83D\uDEA8': string; '\u2705': string; '\u2713': string; '\u2717': string; '\u2699\uFE0F': string; '\uD83D\uDCE6': string; }; /** * Replace emojis with text alternatives for non-emoji terminals */ export declare function sanitizeEmojis(text: string): string; //# sourceMappingURL=ansi-colors.d.ts.map