import { type Database } from "../data/database.js"; export interface UserReadCursor { messageId: string | null; seq: number | null; updatedAt: number; } export interface MemberCursorConfirmation { scopeId: string; memberId: string; messageId: string; messageSeq: number | null; } export declare function getUserReadCursor(scope: string, db?: Database): UserReadCursor | null; export declare function setUserReadCursor(scope: string, patch: { messageId?: string | null; seq?: number | null; }, db?: Database, updatedAt?: number): UserReadCursor; export declare function getMemberCursor(scope: string, memberId: string, db?: Database): string | null; export declare function setMemberCursor(scope: string, memberId: string, messageId: string | null, db?: Database, updatedAt?: number): void; export declare function deleteMemberCursor(scope: string, memberId: string, db?: Database): void; /** Commit-time cursor confirmation. It is idempotent and never moves backwards; * a dangling historical cursor may be replaced by the accepted current fact. */ export declare function confirmMemberCursor(token: MemberCursorConfirmation, db?: Database): boolean; export interface DmMemberCursor { messageId: string | null; seq: number | null; } export declare function setDmMemberCursor(memberId: string, cursor: DmMemberCursor, db?: Database, updatedAt?: number): void; //# sourceMappingURL=cursors.d.ts.map