import { type MonotonicCycle } from './monotonic-guard.js'; import { type RunMonotonicOptions, type RunMonotonicResult } from './monotonic-runner-types.js'; export type { RunMonotonicOptions, RunMonotonicResult, WalkedKind } from './monotonic-runner-types.js'; /** Resolve the slice dir — kept for API/BC (run-driver.ts uses it to * derive `cyclesDir`). The monotonic-runner writer no longer writes * here; the jsonl-store is the new persistence layer. */ export declare function sliceDir(projectRoot: string, sid: string, rid: string): string; /** Load the most recent prior cycle for `(sid, rid)` from the * per-session jsonl store (tail scan, O(N) where N = total jsonl * lines, ~50-100 for a 24h run). Falls back to the legacy * `.peaks/_sub_agents//shared/` dir for cross-session signal. * Returns `null` on any read error. */ export declare function loadPreviousCycle(projectRoot: string, sid: string, rid: string): MonotonicCycle | null; /** Determine the next cycle index — reads the most recent jsonl * cycle line's `cycle` field + 1 (or `1` when none exist). `rid` * retained for API compatibility — the jsonl-store is per-session, * but the line tag carries `rid` so the reader filters to this rid. */ export declare function nextCycleIndex(projectRoot: string, sid: string, rid: string): number; /** Run the guard end-to-end: walk the 4 evaluators, persist the * current cycle to the jsonl store, compare against the prior cycle, * return a structured report. */ export declare function runMonotonicCheck(options: RunMonotonicOptions): RunMonotonicResult; /** Helper for tests + CLI — resolve project root + sid consistently. */ export declare function resolveMonotonicContext(opts: { project?: string; session: string; rid: string; }): { projectRoot: string; sid: string; rid: string; };