import type { JournalEntry } from './types.mts'; /** A retrospective already saved in the session, with the blackboard's creation time for it. */ export type SavedRetrospective = { sourceEventId: string; createdAt: string; }; export type JournalScope = { included: JournalEntry[]; excluded: JournalEntry[]; /** The retrospective whose time bounds the scope; absent when every entry is in scope. */ boundary?: SavedRetrospective; }; /** * Keeps only the entries created after the boundary retrospective, so a later retrospective does * not repeat what an earlier one already reported. * * The boundary is the newest saved retrospective created before the newest entry that holds an * audit block. A new composition therefore starts after the latest retrospective (it is older than * the newest block), while a revision of the latest retrospective, which has no block after it, * falls back to the retrospective before it and so keeps its own blocks. The rule cannot tell a * revision from a new retrospective with no new blocks: both repeat the blocks since the one * before. Entries without a usable `createdAt` are never excluded, because nothing shows they are * older. With no earlier retrospective, or no block, nothing is excluded. */ export declare function scopeSinceRetrospective(entries: JournalEntry[], retrospectives: SavedRetrospective[]): JournalScope;