import { AsyncLocalStorage } from 'node:async_hooks'; export interface LogFunc { (msg: string): void; (obj: Record, msg: string): void; } /** * Expose log type so functions that do not have direct access to pino have access to the log type */ export interface LogType { level: string; trace: LogFunc; debug: LogFunc; info: LogFunc; warn: LogFunc; error: LogFunc; fatal: LogFunc; child: (obj: Record) => LogType; } /** * Encapsulate the logger so that it can be swapped out */ export declare const LogConfig: { /** Get the currently configured logger */ get(): LogType; set(log: LogType): void; /** Disable the logger */ disable(): void; }; export declare const LogStorage: AsyncLocalStorage<{ log: LogType; }>;