UNPKG

955 BTypeScriptView Raw
1import { LogStyle, LogTable } from './interfaces';
2export declare let isBrowser: boolean;
3export declare const defaultLogTableOptions: {
4 padding: number;
5 spacing: number;
6};
7/**
8 * Can be used to change the assumed environment
9 */
10export declare function SetLoggerEnvironment(env: 'node' | 'browser'): void;
11export declare function stringColorToAnsiColor(type: 'background' | 'color', color?: string): string | undefined;
12export declare function ANSICodes(type: 'background' | 'color' | 'bold' | 'reset'): "0" | "1;" | "38;" | "48;";
13export declare function getBrowserStyle(style?: LogStyle): string;
14export declare function maxTableColumnLength(column: LogTable[0]): number;
15export declare function removeStyles(item: string | number): string;
16export declare function pad(text: string, start: number, end: number): string;
17export declare function getColumn(matrix: LogTable, col: number): (string | number | import("./interfaces").LogMessage)[];