import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; import { type GoalEntrySource, type ThreadGoal } from "./types.js"; interface GoalPersistenceDeps { pi: Pick; } export declare function createGoalPersistence(deps: GoalPersistenceDeps): { appendClearEntry: (clearedGoalId: string | null, source: GoalEntrySource) => void; flushGoalPersistence: (source: GoalEntrySource, receiptId?: string) => boolean; getGoal: () => ThreadGoal | null; maybeFlushRuntimePersistence: (source: GoalEntrySource) => void; setGoalSnapshot: (nextGoal: ThreadGoal | null) => void; syncPersistedSnapshot: (snapshot: ThreadGoal | null) => void; }; export type GoalPersistence = ReturnType; export {}; //# sourceMappingURL=goal-persistence.d.ts.map