UNPKG

@log-rush/log-formatter

Version:

Parse/Format/Style colored logs

28 lines (27 loc) 790 B
import { ReadOnlySGRAstNode } from '../parsing/ast'; import { SGROutputBuilder } from './interface'; export declare type TextAttribute = { weight?: 'bold' | 'faint'; italic?: true; underline?: 'single' | 'double'; foreground?: string; background?: string; blink?: 'slow' | 'rapid'; inverted?: true; crossedOut?: true; concealed?: true; content: string; }; export declare class AttributeArrayBuilder implements SGROutputBuilder<TextAttribute[]> { private getColor; private getWeight; private getItalic; private getUnderline; private getForeground; private getBackground; private getBlink; private getInverted; private getCrossedOut; private getConcealed; build(root: ReadOnlySGRAstNode): TextAttribute[]; }