export type RuntimeLogLevel = "debug" | "info" | "warn" | "error" | "silent"; export interface RuntimeLogRecord { level?: RuntimeLogLevel; event: string; [key: string]: unknown; } export interface RuntimeLogOptions { logDir?: string; now?: Date; retentionDays?: number; level?: RuntimeLogLevel; } export interface RuntimeLogWriteResult { written: boolean; path?: string; entry?: unknown; } export interface RuntimeLogCleanupResult { checked: number; deleted: number; retention_days: number; } export declare function defaultRuntimeLogDir(): string; export declare function localDateStamp(date?: Date): string; export declare function localTimestamp(date?: Date): string; export declare function runtimeLogPath({ now, logDir }?: { now?: Date; logDir?: string; }): string; export declare function writeRuntimeLog(record: RuntimeLogRecord, options?: RuntimeLogOptions): RuntimeLogWriteResult; export declare function cleanupRuntimeLogs({ logDir, retentionDays, now }?: { logDir?: string; retentionDays?: number; now?: Date; }): RuntimeLogCleanupResult; export declare function redactRecord(value: unknown): unknown; export declare function redactString(value: string): string;