export declare const LOG_LEVELS: readonly ["debug", "info", "warn", "error"]; export type LogLevel = (typeof LOG_LEVELS)[number]; export type LoggerLevel = LogLevel | 'off'; export type LoggerFields = Readonly>; export interface LogRecord { readonly level: LogLevel; readonly time: string; readonly fields: LoggerFields; readonly msg?: string; } export interface LoggerDestination { write(record: LogRecord): void | Promise; } export interface Logger { readonly level: LoggerLevel; child(bindings: LoggerFields): Logger; debug(fieldsOrMsg?: LoggerFields | string, msg?: string): void; info(fieldsOrMsg?: LoggerFields | string, msg?: string): void; warn(fieldsOrMsg?: LoggerFields | string, msg?: string): void; error(fieldsOrMsg?: LoggerFields | string, msg?: string): void; } export interface CreateLoggerOptions { readonly level?: LoggerLevel; readonly destination?: LoggerDestination; readonly bindings?: LoggerFields; readonly now?: () => Date; } export declare function isLogLevel(value: string | undefined): value is LogLevel; export declare function isLoggerLevel(value: string | undefined): value is LoggerLevel; export declare function createSilentLogger(): Logger; export declare function createLogger(options?: CreateLoggerOptions): Logger; //# sourceMappingURL=logger.d.ts.map