/** * Badge formatter for terminal logs. * * Creates stylized badges using standard ANSI escape codes * compatible with xterm.js. * * @module components/devenv/terminal/parsing/badge */ import type { TLogLevel } from './LogParser.types'; /** * Badge formatter class. * * Creates simple ANSI badges for log levels, tags, and timestamps. * * @example * ```ts * const formatter = new BadgeFormatter(); * const infoBadge = formatter.createLevelBadge('info'); * // Returns: '\x1b[1m\x1b[44m\x1b[97m[ INFO ]\x1b[0m' * ``` */ export declare class BadgeFormatter { /** * Create a level badge. * * Badge format: [ INFO ] with background color * * @param level - Log level * @returns ANSI-formatted level badge string */ createLevelBadge(level: TLogLevel): string; /** * Create a timestamp badge for end of line. * * Badge format: " 22:55:20" aligned to right * * @param timestamp - Display timestamp string * @returns ANSI-formatted timestamp string */ createTimestampBadge(timestamp: string): string; /** * Create a tag badge. * * Badge format: [TAG] with subtle styling * * @param tag - Tag string * @returns ANSI-formatted tag badge string */ createTagBadge(tag: string): string; /** * Create multiple tag badges joined with space. * * @param tags - Array of tag strings * @returns ANSI-formatted tag badges string */ createTagBadges(tags: string[]): string; /** * Create a status indicator. * * @param status - Status type * @returns ANSI-formatted status indicator */ createStatusIndicator(status: 'success' | 'warning' | 'error' | 'info'): string; /** * Create a box badge (multi-line). * * @param text - Text to display * @param level - Log level for color * @returns Multi-line ANSI box */ createBoxBadge(text: string, level?: TLogLevel): string; } //# sourceMappingURL=BadgeFormatter.d.ts.map