import type { Prettify } from '../types/utils.js'; import { type LevelWithSilent } from "pino"; export type LogMode = "pretty" | "json"; export type LogLevel = Prettify; export type Logger = { error>(options: T, printKeys?: (keyof T)[]): void; warn>(options: T, printKeys?: (keyof T)[]): void; info>(options: T, printKeys?: (keyof T)[]): void; debug>(options: T, printKeys?: (keyof T)[]): void; trace>(options: T, printKeys?: (keyof T)[]): void; child: (bindings: Record) => Logger; flush(): Promise; }; type Log = { level: 50 | 40 | 30 | 20 | 10; time: number; msg: string; duration?: number; error?: Error; } & Record; export declare function createLogger({ level, mode, }: { level: LogLevel; mode?: LogMode; }): Logger; export declare function createNoopLogger(_args?: { level?: LogLevel; mode?: LogMode; }): { error(_options: Omit): void; warn(_options: Omit): void; info(_options: Omit): void; debug(_options: Omit): void; trace(_options: Omit): void; flush: () => Promise; }; export {}; //# sourceMappingURL=logger.d.ts.map