import { type CanonicalLogRecord } from '@origintrail-official/dkg-core'; import type { DaemonLogRotationResult } from './log-rotation.js'; export type DaemonLogWriteClass = 'standard' | 'debug'; export type DebugLogRecord = CanonicalLogRecord & { level: 'debug'; }; export declare function isDebugLogRecord(record: CanonicalLogRecord): record is DebugLogRecord; export interface DaemonLogFileWriter { push(data: string): boolean; pushDebug(record: DebugLogRecord): boolean; flush(): Promise; rotate(): Promise; shutdown(): Promise; pending(): number; dropped(): number; } /** * Owns every in-process append to daemon.log. Writes are serialized, queued * appends are bounded, debug entries are the first overflow candidates, and * rotation/flush operations share the same ordered lifecycle. */ export declare function startDaemonLogFileWriter(opts: { logFile: string; maxQueuedEntries?: number; maxBatchEntries?: number; maxAppendAttempts?: number; append?: (data: string) => Promise; rotate: () => Promise; waitBeforeRetry?: (failedAttempt: number) => Promise; onDiagnostic?: (message: string) => void | Promise; }): DaemonLogFileWriter; //# sourceMappingURL=daemon-log-file-writer.d.ts.map