import { type Database } from "./database.js"; /** * The session's first-request tools revision, recorded on its first turn * attempt and never changed after (migration 1513). A session that has no * revision yet gets the current one when no other attempt of it ever ran, so * no model request was sent before; otherwise (an attempt ran on a release * that did not record it) it keeps 0, the tools those requests carried. * Call it before the attempt's first model request. */ export declare function settleSessionFirstRequestToolsRevision(db: Database, input: { workspaceId: string; sessionId: string; attemptId: string; }): Promise; /** * The given sessions whose requests find `list_models` and `privacy_facts` * through tool search (revision 1 or later). A session with no revision yet * counts: its first attempt will record the current revision. */ export declare function sessionsWithSearchableRarelyUsedTools(db: Database, workspaceId: string, sessionIds: readonly string[]): Promise>;