import type { PhaseNoteRow } from "./phase-journal-types.js";
export type PhaseContextScoreInput = {
    phaseKey: string;
    taskId?: string;
    refKeys: Set<string>;
};
/** Deterministic relevance score for `get-phase-context`. */
export declare function scorePhaseNoteForContext(note: PhaseNoteRow, ctx: PhaseContextScoreInput): number;
export declare function sortPhaseNotesForContext(notes: PhaseNoteRow[], ctx: PhaseContextScoreInput): PhaseNoteRow[];
/** Top-note ordering for agent-session-snapshot (priority, recency, id). */
export declare function sortPhaseNotesForSnapshotTop(notes: PhaseNoteRow[]): PhaseNoteRow[];
