import type { TransitionEvidence } from "../types.js";
export type TaskStoreSyncDiff = {
    taskId: string;
    sourceStatus: string;
    targetStatus: string;
    missingTransitions: TransitionEvidence[];
};
export type TaskStoreSyncReport = {
    schemaVersion: 1;
    sourceRef: string;
    targetRef: string;
    databaseRelativePath: string;
    taskCountSource: number;
    taskCountTarget: number;
    diffs: TaskStoreSyncDiff[];
    missingTransitionCount: number;
};
export declare function materializeGitRefDatabase(workspacePath: string, gitRef: string, databaseRelativePath: string): string;
export declare function buildTaskStoreSyncReport(args: {
    workspacePath: string;
    effectiveConfig: Record<string, unknown>;
    sourceRef: string;
    targetRef?: string;
}): Promise<{
    report: TaskStoreSyncReport;
    sourceTempPath: string | null;
}>;
export declare function applyTaskStoreSyncReport(args: {
    workspacePath: string;
    effectiveConfig: Record<string, unknown>;
    sourceRef: string;
    dryRun?: boolean;
}): Promise<{
    report: TaskStoreSyncReport;
    applied: number;
    skipped: number;
}>;
export declare function probeTaskStoreShaAtGitRef(workspacePath: string, gitRef: string, databaseRelativePath: string): string | null;
export declare function hashWorkingTreeTaskStore(workspacePath: string, databaseRelativePath: string): string | null;
