import type Database from "better-sqlite3";
type SqliteDb = InstanceType<typeof Database>;
/** True when planning SQLite has phase journal DDL (v19+ and `phase_notes` table). */
export declare function isPhaseJournalPersistedOnDb(db: SqliteDb): boolean;
/** Default cap for `topNotes` in agent-session-snapshot. */
export declare const PHASE_JOURNAL_SNAPSHOT_TOP_NOTES = 3;
export type PhaseJournalSnapshotTopNote = {
    id: string;
    noteType: string;
    priority: string;
    summary: string;
};
export type PhaseJournalSnapshotBlock = {
    phaseKey: string;
    phaseLabel: string | null;
    activeNoteCount: number;
    criticalCount: number;
    openFollowUpCount: number;
    topNotes: PhaseJournalSnapshotTopNote[];
};
/**
 * Bounded phase journal summary for `agent-session-snapshot` / `agent-bootstrap`.
 * Returns `null` when phase is unknown, kit SQLite is below v19, or tables are absent.
 */
export declare function buildPhaseJournalSnapshotSummary(db: SqliteDb, phaseKey: string | null | undefined): PhaseJournalSnapshotBlock | null;
export {};
