import { type FileAsset, type ResourceRef, type SessionAuthorizationActor } from "@opengeni/contracts"; import { type Database } from "./database.js"; /** Only call during verified human initial/Send/Steer acceptance, in its transaction. */ export declare function acceptSessionFileAttachments(db: Database, input: { accountId: string; workspaceId: string; sessionId: string; turnId: string; subjectId: string; resources: ResourceRef[]; }): Promise; /** Called only after canonical archive events commit within the same transaction. * The existing SQL lifecycle proves the immutable importer and completed upload; * passing NULL never creates or authorizes an execution turn. */ export declare function acceptArchivedSessionFileAttachments(db: Database, input: { accountId: string; workspaceId: string; sessionId: string; subjectId: string; fileIds: readonly string[]; }): Promise; export type SessionAttachmentReadAccess = { sessionId: string; authorityEpoch: number; actor: Pick & Partial<{ callerSessionId: string; turnId: string; attemptId: string; executionGeneration: number; }>; }; /** Core must prove session authorization; workers supply their live own-session attempt. */ export declare function readSessionFileAttachments(db: Database, input: { accountId: string; workspaceId: string; fileIds: readonly string[]; access: SessionAttachmentReadAccess; }): Promise;