@mojir/lits
Version:
Lits is a Lisp dialect implemented in TypeScript
940 lines (939 loc) • 47.4 kB
TypeScript
export type Colorizer = ReturnType<typeof createColorizer>;
export declare const Colors: {
readonly Reset: "" | "\u001B[0m";
readonly Bright: "" | "\u001B[1m";
readonly ResetBright: "" | "\u001B[21m";
readonly Dim: "" | "\u001B[2m";
readonly ResetDim: "" | "\u001B[22m";
readonly Italic: "" | "\u001B[3m";
readonly ResetItalic: "" | "\u001B[23m";
readonly Underscore: "" | "\u001B[4m";
readonly ResetUnderscore: "" | "\u001B[24m";
readonly Blink: "" | "\u001B[5m";
readonly ResetBlink: "" | "\u001B[25m";
readonly Reverse: "" | "\u001B[7m";
readonly ResetReverse: "" | "\u001B[27m";
readonly Hidden: "" | "\u001B[8m";
readonly ResetHidden: "" | "\u001B[28m";
readonly FgBlack: "" | "\u001B[30m";
readonly FgRed: "" | "\u001B[31m";
readonly FgGreen: "" | "\u001B[32m";
readonly FgYellow: "" | "\u001B[33m";
readonly FgBlue: "" | "\u001B[34m";
readonly FgMagenta: "" | "\u001B[35m";
readonly FgCyan: "" | "\u001B[36m";
readonly FgWhite: "" | "\u001B[37m";
readonly FgGray: "" | "\u001B[90m";
readonly BgBlack: "" | "\u001B[40m";
readonly BgRed: "" | "\u001B[41m";
readonly BgGreen: "" | "\u001B[42m";
readonly BgYellow: "" | "\u001B[43m";
readonly BgBlue: "" | "\u001B[44m";
readonly BgMagenta: "" | "\u001B[45m";
readonly BgCyan: "" | "\u001B[46m";
readonly BgWhite: "" | "\u001B[47m";
readonly BgGray: "" | "\u001B[100m";
};
type Formatter = (text: string) => string;
declare function createFormatter(enableColors: boolean, colors: typeof Colors[keyof typeof Colors][], formatters: Formatter[]): {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
export declare function createColorizer(enableColors?: boolean): {
black: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
red: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
green: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
yellow: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
blue: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
magenta: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
cyan: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
white: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
gray: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgBlack: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgRed: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgGreen: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgYellow: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgBlue: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgMagenta: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgCyan: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgWhite: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bgGray: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
reset: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
bright: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
dim: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
italic: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
underscore: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
blink: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
reverse: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
hidden: {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
leftPad: (length: number, char?: string) => {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
rightPad: (length: number, char?: string) => {
(text: string): string;
black: ReturnType<typeof createFormatter>;
red: ReturnType<typeof createFormatter>;
green: ReturnType<typeof createFormatter>;
yellow: ReturnType<typeof createFormatter>;
blue: ReturnType<typeof createFormatter>;
magenta: ReturnType<typeof createFormatter>;
cyan: ReturnType<typeof createFormatter>;
white: ReturnType<typeof createFormatter>;
gray: ReturnType<typeof createFormatter>;
bgBlack: ReturnType<typeof createFormatter>;
bgRed: ReturnType<typeof createFormatter>;
bgGreen: ReturnType<typeof createFormatter>;
bgYellow: ReturnType<typeof createFormatter>;
bgBlue: ReturnType<typeof createFormatter>;
bgMagenta: ReturnType<typeof createFormatter>;
bgCyan: ReturnType<typeof createFormatter>;
bgWhite: ReturnType<typeof createFormatter>;
bgGray: ReturnType<typeof createFormatter>;
reset: ReturnType<typeof createFormatter>;
bright: ReturnType<typeof createFormatter>;
dim: ReturnType<typeof createFormatter>;
italic: ReturnType<typeof createFormatter>;
underscore: ReturnType<typeof createFormatter>;
blink: ReturnType<typeof createFormatter>;
reverse: ReturnType<typeof createFormatter>;
hidden: ReturnType<typeof createFormatter>;
leftPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
rightPad: (length: number, char?: string) => ReturnType<typeof createFormatter>;
};
};
export {};