UNPKG

@kadena/hardhat-chainweb

Version:
15 lines 698 B
import { Readable } from 'stream'; import { styleText } from 'util'; export type Color = 'cyan' | 'yellow' | 'magenta' | 'blue' | 'green' | 'red'; export type LogOptions = Parameters<typeof styleText>[0]; type LogFunction = (msg: string) => void; export type Logger = { info: LogFunction; error: LogFunction; }; export declare const COLOR_PALETTE: Color[]; export declare function logInfo(color: LogOptions, label: string | number, msg: string): void; export declare function logError(color: LogOptions, label: string | number, msg: string): void; export declare function streamLogger(stream: Readable, logFun: (msg: string) => void): string; export {}; //# sourceMappingURL=logger.d.ts.map