/** * Pure helpers for hooking into pino's internal stream. */ /** * Find the `pino.stream` symbol on an object by description. * Pino uses a local Symbol('pino.stream'), not a global registry symbol. */ export declare function findPinoStreamSymbol(obj: object): symbol | undefined; /** Undo a previously-applied {@link wrapWriteMethod} on the same stream. */ export declare function unwrapWriteMethod(stream: { write: Function; [key: string]: unknown; }): void; /** * Wrap a stream's `write` method to intercept JSON log entries. * Calls `ingest` for each valid JSON entry that has a numeric `level`. * The original write is always called to preserve normal logging. * * Idempotent: if the stream's `write` is already wrapped by us, this is a * no-op so a hot-reload can't double-ingest. Restore via {@link unwrapWriteMethod}. */ export declare function wrapWriteMethod(stream: { write: Function; [key: string]: unknown; }, ingest: (entry: Record) => void): void;