import type { ExtensionCommandContext } from "@mariozechner/pi-coding-agent"; import type { NonLoopPhaseName, PhaseRun } from "./types"; declare global { var __ralphiCollapseInProgress: boolean | undefined; } export type PhaseControllerDeps = { phaseRuns: Map; activePhaseBySession: Map; commandContextByRun: Map; restoreStateFromSession: (ctx: ExtensionCommandContext) => void; sessionKey: (ctx: ExtensionCommandContext) => string; shortId: (prefix: string) => string; sendUserMessage: (ctx: ExtensionCommandContext, text: string, deliveryWhenBusy?: "steer" | "followUp") => void; appendRalphiEvent: (kind: string, data: Record) => void; persistState: (ctx: ExtensionCommandContext) => void; setLabel: (targetId: string, label: string) => void; appendEntry: (customType: string, data: Record) => void; setSuppressEventRestore: (value: boolean) => void; checkpointEntryType: string; }; export declare class PhaseController { private readonly deps; private currentlyFinalizingRun; private skipNextCompact; constructor(deps: PhaseControllerDeps); private findCheckpointEntryId; private ensureCheckpointLeafId; private withSuppressedEventRestore; getCurrentlyFinalizingRun(): PhaseRun | null; consumeSkipNextCompact(): boolean; finalizeNonLoopRun(run: PhaseRun, ctx: ExtensionCommandContext): Promise; startPhase(ctx: ExtensionCommandContext, phase: NonLoopPhaseName, args: string): Promise; } //# sourceMappingURL=phase-controller.d.ts.map