import type { JournalEntry, JournalEvent, JournalEventType, SessionBrief, BriefInput } from '../types/index.js';
export declare const MAX_JOURNAL_ENTRIES = 90;
export declare const LAST_SESSION_THRESHOLD_HOURS = 24;
/** Prune entries to the most recent `maxEntries`. */
export declare function archiveEntries(entries: JournalEntry[], maxEntries: number): JournalEntry[];
/** Create a journal event with the current timestamp. */
export declare function createJournalEvent(type: JournalEventType, opts?: {
    specId?: string;
    criterionIndex?: number;
    commitHash?: string;
}): JournalEvent;
/** Apply an event to the matching open session, or start a new one. */
export declare function applyEventToSessions(entries: JournalEntry[], sessionId: string, event: JournalEvent): JournalEntry[];
/** Format the last session entry into a compact summary string. */
export declare function formatLastSessionSummary(entry: JournalEntry): string;
/** Check if a session is older than the given threshold in hours. */
export declare function isOlderThan(entry: JournalEntry, thresholdHours: number): boolean;
/** Build a compact SessionBrief from project specs + journal state. */
export declare function buildBrief(input: BriefInput): SessionBrief;
//# sourceMappingURL=session-journal.d.ts.map