import type { ActorIdentity, ItemSummary } from './types.js'; import type { ActorRef } from './policy.js'; import type { NotificationSql } from './notifications.js'; export interface BookmarkInput { after?: string; limit?: number; } export interface BookmarkPage { items: Array<{ root: Pick; savedAt: string; }>; hasMore: boolean; nextCursor?: string; watermark: string; } export interface BookmarkRepository { set(rootId: string, actor: ActorRef, present: boolean): Promise; has(rootId: string, actor: ActorRef): Promise; list(input: BookmarkInput, actor: ActorIdentity): Promise; } export declare const bookmarkTables = "\nCREATE TABLE bookmark_sequences(workspace_id TEXT PRIMARY KEY,last_sequence BIGINT NOT NULL);\nCREATE TABLE bookmarks(workspace_id TEXT NOT NULL,actor_kind TEXT NOT NULL,actor_id TEXT NOT NULL,root_id TEXT NOT NULL,saved_at TEXT NOT NULL,saved_sequence BIGINT NOT NULL,PRIMARY KEY(workspace_id,actor_kind,actor_id,root_id));\nCREATE INDEX bookmarks_actor_sequence ON bookmarks(workspace_id,actor_kind,actor_id,saved_sequence);\n"; export declare class SqlBookmarkRepository implements BookmarkRepository { private readonly sql; constructor(sql: NotificationSql); has(rootId: string, actor: ActorRef): Promise; set(rootId: string, actor: ActorRef, present: boolean): Promise; list(input: BookmarkInput, actor: ActorIdentity): Promise; } //# sourceMappingURL=bookmarks.d.ts.map