@abw/badger-database
Version:
Javascript database abstraction layer
47 lines • 2.35 kB
TypeScript
type RGB = {
r: number | string;
g: number | string;
b: number | string;
};
declare const ANSIRGB: {
fg: (rgb: RGB) => string;
bg: (rgb: RGB) => string;
};
type ANSIRGBKey = keyof typeof ANSIRGB;
type ANSIColours = Partial<Record<ANSIRGBKey, string>>;
type ANSIColour = string | ANSIColours;
export declare const ANSIescapeCode: (color: string, base?: ANSIRGBKey) => string;
export declare const ANSIescape: (colors?: ANSIColour) => string;
export declare const ANSIresetCode: string;
export declare const ANSIreset: () => string;
export declare const color: (colors: ANSIColour) => (...text: any[]) => string;
export declare const palette: (palette: Record<string, ANSIColour>) => {};
export declare const black: (...text: any[]) => string;
export declare const red: (...text: any[]) => string;
export declare const green: (...text: any[]) => string;
export declare const yellow: (...text: any[]) => string;
export declare const blue: (...text: any[]) => string;
export declare const magenta: (...text: any[]) => string;
export declare const cyan: (...text: any[]) => string;
export declare const grey: (...text: any[]) => string;
export declare const white: (...text: any[]) => string;
export declare const brightBlack: (...text: any[]) => string;
export declare const brightRed: (...text: any[]) => string;
export declare const brightGreen: (...text: any[]) => string;
export declare const brightYellow: (...text: any[]) => string;
export declare const brightBlue: (...text: any[]) => string;
export declare const brightMagenta: (...text: any[]) => string;
export declare const brightCyan: (...text: any[]) => string;
export declare const brightGrey: (...text: any[]) => string;
export declare const brightWhite: (...text: any[]) => string;
export declare const darkBlack: (...text: any[]) => string;
export declare const darkRed: (...text: any[]) => string;
export declare const darkGreen: (...text: any[]) => string;
export declare const darkYellow: (...text: any[]) => string;
export declare const darkBlue: (...text: any[]) => string;
export declare const darkMagenta: (...text: any[]) => string;
export declare const darkCyan: (...text: any[]) => string;
export declare const darkGrey: (...text: any[]) => string;
export declare const darkWhite: (...text: any[]) => string;
export {};
//# sourceMappingURL=Color.d.ts.map