import { LogLevel, LogStyles } from '../types/index.js'; import { ColorCapability } from './color-converter.js'; export type ANSIStyle = { text: string; timestamp?: string; level?: string; prefix?: string; message?: string; location?: string; reset: string; }; export declare class TerminalRenderer { private colorCapability; constructor(colorCapability?: ColorCapability); /** * Get ANSI color codes - now supports truecolor/256-color */ private getColorCode; /** * Get ANSI style codes */ private getStyleCode; /** * Convert log styles to ANSI formatting */ renderTerminal(level: LogLevel, message: string, timestamp?: string, prefix?: string, location?: string, styles?: LogStyles): ANSIStyle; /** * Style timestamp based on preset or defaults */ private styleTimestamp; /** * Style level with appropriate colors and formatting */ private styleLevel; /** * Style prefix based on preset - now as a badge */ private stylePrefix; /** * Style message based on preset */ private styleMessage; /** * Style location (file:line) information */ private styleLocation; /** * Get text representation of log level */ getLevelText(level: LogLevel): string; /** * Create cyberpunk-style ANSI rendering with truecolor support */ renderCyberpunk(level: LogLevel, message: string, timestamp?: string, prefix?: string, location?: string): ANSIStyle; /** * Create minimal ANSI rendering with truecolor support */ renderMinimal(level: LogLevel, message: string, timestamp?: string, prefix?: string): ANSIStyle; /** * Get chalk-like interface for log level with truecolor support */ getChalkForLevel(level: LogLevel): ChalkLikeInterface; } export interface ChalkLikeInterface { color: (text: string) => string; bold: (text: string) => string; dim: (text: string) => string; bgGray: (text: string) => string; bgBlue: (text: string) => string; reset: (text: string) => string; cyan: { bold: (text: string) => string; dim: (text: string) => string; bg: (text: string) => string; }; } //# sourceMappingURL=terminal-renderer.d.ts.map