import type { DatabaseSync } from 'node:sqlite'; import { type CommonGroupCheckpoint, type CommonGroupRow, type CommonGroupStore } from './common-groups.js'; /** Uses the existing private SQLite database and transaction owner. */ export declare class CommonGroupDatabase implements CommonGroupStore { private readonly db; private readonly transaction; constructor(db: DatabaseSync, transaction: (work: () => void) => void); private rows; get(scope: string, peer: string, uids: string[]): CommonGroupRow[]; read(scope: string, peer: string, after?: string): { items: CommonGroupRow[]; total: number; hasMore: boolean; checkpoint: CommonGroupCheckpoint; }; apply(scope: string, peer: string, expected: CommonGroupCheckpoint, changes: { items: CommonGroupRow[]; removed: string[]; phase: CommonGroupCheckpoint['phase']; after: string; }): boolean; } //# sourceMappingURL=common-group-database.d.ts.map