/** * State-file readers for the monitor. * * Reads notification state and recovery metrics from the on-disk * state files produced by the dispatch subsystem. * * @module */ import type { NotificationState, RecoveryMetrics } from "./monitor-reader-types.ts"; /** * Scan the state directory for notification sidecar files (notifications-*.json) * and return a best-effort NotificationState. Returns null when no notification * state file exists (notifications subsystem may be disabled). * * The notification subsystem does not persist runtime state to disk by default, * so this reader returns null gracefully when no data is found. */ export declare function readNotificationState(stateDir: string): NotificationState | null; /** * Parse the `recovery` key from the metrics-*.json sidecar file. * Returns a RecoveryMetrics object when the key is present and valid, * or null when absent, malformed, or the metrics file doesn't exist. * * The `recovery` key is optional in the persisted file — absent when no * recovery engine is wired or when ROLEBOX_METRICS is disabled. */ export declare function readRecoveryMetrics(stateDir: string): RecoveryMetrics | null; //# sourceMappingURL=monitor-reader-state.d.ts.map