import type { TaskEntity, TransitionEvidence } from "../types.js";
export declare const QUEUE_GIT_ALIGNMENT_SCHEMA_VERSION: 1;
/** Default age in days after which `in_progress` tasks are flagged (informational). */
export declare const DEFAULT_STALE_IN_PROGRESS_DAYS = 7;
export type GitHeadProbeResult = {
    ok: boolean;
    headSha?: string;
    /** ISO-8601 committer date of HEAD, when available */
    headCommitDateIso?: string;
    error?: string;
};
export declare function probeGitHead(workspacePath: string): GitHeadProbeResult;
export type QueueGitAlignmentReport = {
    schemaVersion: typeof QUEUE_GIT_ALIGNMENT_SCHEMA_VERSION;
    workspacePath: string;
    git: GitHeadProbeResult;
    storeLastUpdated: string;
    storeLastTransitionIso: string | null;
    signalMergeAheadOfTransitions: boolean;
    /** Informational: possible drift when HEAD is newer than last recorded transition (merge ≠ `run-transition complete`). */
    signalNotes: string[];
    staleInProgressDays: number;
    inProgressStale: {
        taskId: string;
        title: string;
        updatedAt: string;
        ageDays: number;
    }[];
    summary: string;
};
export declare function buildQueueGitAlignmentReport(input: {
    workspacePath: string;
    tasks: TaskEntity[];
    transitionLog: TransitionEvidence[];
    storeLastUpdated: string;
    git: GitHeadProbeResult;
    staleInProgressDays?: number;
}): QueueGitAlignmentReport;
