import type { LoopSnapshot, GraphEvent } from "./monitor-reader-types.ts"; /** * Parse all `loops-{hash}.json` files in the state directory and return * LoopSnapshot entries for non-terminal loops only. * * The loop coordinator persists the full LoopState map via LoopStore. * Terminal phases (complete, cancelled, interrupted, error) are excluded. * Returns an empty array when no loop files exist. */ export declare function readLoopSnapshots(stateDir: string): LoopSnapshot[]; /** * Parse the durable graph event log (`graph-events-{hash}.ndjson`) files in * the state directory and return the most recent {@link GraphEvent}s as typed * events, in chronological order. * * Files are matched with the `graph-events-` prefix (see * {@link listNDJSONFiles}). Each line is a standalone JSON record (the writer * appends one complete line per event), so the reader treats every line * independently: a malformed or incomplete line is skipped without aborting * the file or the reader. Events are coalesced across all matched files, * ordered by `ts` (ascending), and only the last `maxLines` events are * returned (fewer when fewer valid lines exist). * * Returns an empty array when no files exist or no valid lines are present. */ export declare function readGraphEvents(stateDir: string, maxLines?: number): GraphEvent[]; //# sourceMappingURL=monitor-reader-graph.d.ts.map