import type { UnderstandingSourceGrant, UnderstandingSourceRun, UserFocus } from './types.js'; export declare function listUnderstandingSourceGrants(options?: { includeRevoked?: boolean; }): UnderstandingSourceGrant[]; export declare function getUnderstandingSourceGrant(id: string): UnderstandingSourceGrant | null; export declare function upsertUnderstandingSourceGrant(input: Omit & { checkpoint?: Record; lastCollectedAt?: number; nowMs?: number; }): UnderstandingSourceGrant; export declare function updateUnderstandingSourceGrantCheckpoint(id: string, input: { checkpoint?: Record; lastCollectedAt?: number; nowMs?: number; }): UnderstandingSourceGrant | null; export declare function revokeUnderstandingSourceGrant(id: string, nowMs?: number): UnderstandingSourceGrant | null; export declare function createUnderstandingSourceRun(input: { grantId: string; kind: UnderstandingSourceRun['kind']; status?: UnderstandingSourceRun['status']; cursorBefore?: string; metadata?: Record; nowMs?: number; }): UnderstandingSourceRun; export declare function getUnderstandingSourceRun(id: string): UnderstandingSourceRun | null; export declare function listUnderstandingSourceRuns(grantId: string, limit?: number): UnderstandingSourceRun[]; export declare function updateUnderstandingSourceRun(id: string, patch: { status?: UnderstandingSourceRun['status']; cursorAfter?: string; itemsSeen?: number; metadata?: Record; errorMessage?: string; completed?: boolean; nowMs?: number; }): UnderstandingSourceRun | null; export declare function upsertUserFocus(input: Omit & { nowMs?: number; }): UserFocus; export declare function listUserFocuses(statuses?: UserFocus['status'][]): UserFocus[]; export declare function setUserFocusStatus(id: string, status: UserFocus['status'], nowMs?: number): UserFocus | null; export declare function deleteUserFocus(id: string): boolean;