build-in-public-bot
Version:
AI-powered CLI bot for automating build-in-public tweets with code screenshots
29 lines • 690 B
TypeScript
export interface ANSIStyle {
foreground?: string;
background?: string;
bold?: boolean;
italic?: boolean;
underline?: boolean;
inverse?: boolean;
dim?: boolean;
strikethrough?: boolean;
}
export interface ANSISegment {
text: string;
style: ANSIStyle;
}
export interface ParsedLine {
segments: ANSISegment[];
plainText: string;
}
export declare class ANSIParser {
private readonly colorMap;
parse(input: string): ParsedLine[];
private parseLine;
private parseEscapeSequence;
private applyStyleCodes;
private get256Color;
private toHex;
stripANSI(text: string): string;
}
//# sourceMappingURL=ansi-parser.d.ts.map