import type { MetricsSnapshot } from "../../../dispatch/persistence/metrics.ts"; import type { NDJSONEvent } from "./monitor-reader-types.ts"; /** * Parse the metrics sidecar JSON file from the state directory. Returns the * MetricsSnapshot (the `metrics` field from the sidecar file) or null if no * valid metrics file exists. * * Handles missing files, malformed JSON, and partial data gracefully (returns * null, never throws). */ export declare function readMetricsSnapshot(stateDir: string): MetricsSnapshot | null; /** * Read the last N lines of the NDJSON event log (metrics-events-*.ndjson) and * return them as parsed NDJSONEvent objects. Returns an empty array when the * log file does not exist or cannot be read. */ export declare function readMetricsRecentEvents(stateDir: string, maxLines?: number): NDJSONEvent[]; //# sourceMappingURL=monitor-reader-metrics.d.ts.map