type LogFunction = (...args: unknown[]) => void; export default class ConsoleLog { /** A prefix to prepend to all log messages. */ readonly prefix?: string | undefined; /** * The number of spaces to pad the prefix. For example, if the prefix is `custom` and the * padding is 8, the output will be `custom `. * * @default 8 */ readonly padding: number; static prefixes: Readonly<{ info: string; warn: string; error: string; fatal: string; }>; constructor( /** A prefix to prepend to all log messages. */ prefix?: string | undefined, /** * The number of spaces to pad the prefix. For example, if the prefix is `custom` and the * padding is 8, the output will be `custom `. * * @default 8 */ padding?: number); plain: LogFunction; info: LogFunction; succeed: LogFunction; warn: LogFunction; error: LogFunction; fatal: (...args: unknown[]) => never; protected getArgs(args: unknown[]): unknown[]; } export {};