import pino from 'pino'; import type { FastifyRequest, FastifyReply } from 'fastify'; import type { LoggerOptions } from './types'; import { fieldSym, noticeSym, performanceSym, appSym } from './constants'; export { appSym } from './constants'; declare module 'pino' { interface BaseLogger { notice: pino.LogFn; } } declare module 'fastify' { interface FastifyRequest { [noticeSym]: { [key: string]: string; }; [fieldSym]: { [key: string]: string; }; [performanceSym]: { [key: string]: number[]; }; [appSym]: string; } interface FastifyBaseLogger { notice: pino.LogFn; addField: (key: string, value: string | number) => void; addNotice: (key: string, value: string | number) => void; addPerformance: (name: string, value: number) => void; } } export default function createLogger(options: LoggerOptions): import("pino").Logger<"notice", boolean>; export declare function preHandler(req: FastifyRequest, reply: FastifyReply, done: any): void; export declare function parse(line: string): Record | undefined; export * as pino from 'pino';