/** * Parse blessed-style descriptor strings into ANSI escape codes. * Replaces BlessedProgram.prototype.style / _attr. * * Supports: * Attributes: "bold", "dim", "italic", "underline", "strikeout", "blink", "inverse", "invisible" * Negated: "!bold", "!dim", etc. * Named fg: "red fg", "brightBlue fg", "gray fg", "default fg" * Named bg: "red bg", "brightBlue bg", "gray bg", "default bg" * Hex fg/bg: "#ff0000 fg", "#ff0000(196) fg", "#aabb00 bg" * SGR index: "196 fg", "232 bg" * Combined: ["bold", "red fg"] or "bold, red fg" * Default: "default" */ /** * Convert blessed-style descriptor(s) to ANSI escape sequence. * * @example * parseStyleDescriptor('bold') // '\x1b[1m' * parseStyleDescriptor('!bold') // '\x1b[22m' * parseStyleDescriptor(['bold', 'red fg']) // '\x1b[1;31m' * parseStyleDescriptor('bold, red fg') // '\x1b[1;31m' */ export declare function parseStyleDescriptor(param: string | string[]): string; //# sourceMappingURL=sgr.d.ts.map