import type DatabaseCtor from "better-sqlite3";
type SqliteDb = InstanceType<typeof DatabaseCtor>;
/** Completed delivery tasks in phase before showing journal silence warning. */
export declare const PHASE_JOURNAL_SILENCE_COMPLETED_THRESHOLD = 1;
export type DashboardPhaseNoteCountRow = {
    phaseKey: string;
    activeNoteCount: number;
    latestNoteAt: string | null;
};
export type DashboardPhaseJournalStats = {
    schemaVersion: 1;
    available: boolean;
    phases: DashboardPhaseNoteCountRow[];
    currentPhase: {
        phaseKey: string | null;
        activeNoteCount: number;
        completedDeliveryTaskCount: number;
        silenceWarning: boolean;
    };
};
export declare function buildDashboardPhaseJournalStats(args: {
    db: SqliteDb | null;
    currentKitPhase: string | null | undefined;
    completedDeliveryTaskCount?: number;
}): DashboardPhaseJournalStats;
export {};
