export interface LogLevel { /** * The log level string representation */ readonly levelName: string; /** * The log level numeric value */ readonly level: number; } /** * Construct Type from arguments * * @param levelName - the level string representation * @param level - the level value * @returns a new LoggerType */ export declare function LogLevel(levelName: string, level: number): LogLevel; export declare namespace LogLevel { /** * * @param left - the left element * @param right - the right element * * @returns the comparison result */ function compare(left: LogLevel, right: LogLevel): 1 | 0 | -1; /** * * @param level - the log level * @returns the level string representation */ function stringify(level: LogLevel): string; /** * * @param level - the log level * @returns the level numerical value */ function value(level: LogLevel): number; /** * Build a matching function `(anyLevelValue) => value` from a list of tuples `[level1, value1], [level2, value2], ...` * * @param matchers */ function match(matchers: [LogLevel, T][]): (anyLevelValue: LogLevel['level']) => null | undefined | T; function match(matchers: [LogLevel, T][], defaultValue: T): (anyLevelValue: LogLevel['level']) => T; const Critical: LogLevel; const Error: LogLevel; const Warning: LogLevel; const Info: LogLevel; const Debug: LogLevel; } //# sourceMappingURL=level.d.ts.map