import { LogProcessor } from "@holz/core"; import { Writable } from "node:stream"; /** * Prints structured logs to a writable stream in NDJSON form. Optimized for * log files. * * @example * createJsonBackend({ * stream: fs.createWriteStream('my-app.log', { flags: 'a' }), * }) * * @see https://github.com/ndjson/ndjson-spec */ export declare const createJsonBackend: ({ stream }: Config) => LogProcessor; interface Config { /** Where to print logs. */ stream: Writable; } export {};