import type { ModuleLifecycleContext } from "../../../contracts/module-contract.js";
import type { TaskStoreDocument } from "../types.js";
import type { OpenedPlanningStores } from "./planning-open.js";
import { type TaskStateProjectionMeta, type TaskStateProjectionSyncStatus } from "./task-state-projection-meta-store.js";
export declare function resolveGitHeadSha(workspacePath: string): string | null;
export declare function openPlanningStoresForTaskStateCache(ctx: ModuleLifecycleContext): Promise<OpenedPlanningStores>;
export declare function persistTaskStateProjectionDocument(planning: OpenedPlanningStores, document: TaskStoreDocument, options?: {
    persistScope?: "full" | "incremental";
}): void;
export declare function upsertProjectionMetaAfterApply(planning: OpenedPlanningStores, input: {
    appliedSequence: number;
    sourceCommit: string | null;
    syncStatus: TaskStateProjectionSyncStatus;
    updatedAt: string;
}): TaskStateProjectionMeta | null;
