import type DatabaseCtor from "better-sqlite3";
import { type PhaseNoteProjection } from "../phase-journal/phase-journal-projections.js";
type SqliteDb = InstanceType<typeof DatabaseCtor>;
export declare const DASHBOARD_PAST_PHASE_NOTES_MAX_KEYS = 120;
export declare const DASHBOARD_PAST_PHASE_NOTES_ROW_CAP = 2000;
export type DashboardPastPhaseNotesEntry = {
    phaseKey: string;
    notes: PhaseNoteProjection[];
};
/** Workspace ordinals strictly before `currentKitPhase` (matches dashboard extension rollup). */
export declare function derivePastPhaseKeysFromCatalog(phases: readonly {
    phaseKey?: string | null;
}[], currentKitPhase: string | null | undefined): string[];
export declare function buildDashboardPastPhaseNotes(args: {
    db: SqliteDb | null;
    phaseCatalogPhases: readonly {
        phaseKey?: string | null;
    }[];
    currentKitPhase: string | null | undefined;
}): DashboardPastPhaseNotesEntry[];
export {};
