/**
 * Dream-cycle — Task 327 (+ Task 391 prune-revisions, Task 596 phases 6–7).
 *
 * Operator-initiated graph-hygiene sweep. Seven phases:
 *   1 orphans, 2 stale compiled-truth, 3 edges to :Trashed targets,
 *   4 citation audit, 5 prune compiled-truth revisions,
 *   6 backlink materialisation, 7 tag normalisation.
 *
 * Phase ordering is fixed; the `phases` parameter on memory-dream-run
 * selects which subset to run. Failure of any phase logs
 * `[dream-cycle:phase-<n>:error]` and continues to the next.
 */
import type { Session } from "neo4j-driver";
export interface PhaseContext {
    accountId: string;
    session: Session;
    /** Per-run config (e.g. phase 4's maxEventsPerRun, resumeCursor). */
    config: PhaseConfig;
}
export interface PhaseConfig {
    /** Phase 4 (citation audit) cap. Default 200. */
    maxEventsPerRun?: number;
    /** Phase 4 resume cursor: timelineEventId to start AFTER. */
    resumeCursor?: string | null;
}
export interface PhaseResult {
    phase: number;
    name: string;
    durationSec: number;
    /** Items the phase found warranting action (orphans, gaps, etc.). */
    proposed: number;
    /** Items the phase actually mutated (e.g. dead-edge marks, citations applied). */
    applied: number;
    /** Items deferred to a review queue. */
    deferred: number;
    /** Phase-specific extra payload (e.g. phase 4's lastEventCursor). */
    extra?: Record<string, unknown>;
}
export interface PhaseError {
    phase: number;
    name: string;
    reason: string;
}
//# sourceMappingURL=index.d.ts.map