import type { TaskStateProjectionMeta } from "./task-state-projection-meta-store.js";
export type TaskStateSyncState = "missing" | "current" | "behind" | "conflict";
export declare function deriveTaskStateSyncState(input: {
    branchResolvable: boolean;
    remoteLatestSequence: number | null;
    localAppliedSequence: number | null;
    remoteTipSha: string | null;
    localSourceCommit: string | null;
}): {
    syncState: TaskStateSyncState;
    reason: string;
};
export declare function readLocalAppliedSequence(meta: TaskStateProjectionMeta | null): number | null;
