import { type RecentEdit } from "./recent-edits.js"; export declare const AGENT_PRESENCE_LINGER_MS = 6000; export declare function agentEnterDocument(docId: string, metadata?: Record): void; export interface AgentLeaveOptions { lingerMs?: number; } export declare function agentLeaveDocument(docId: string, options?: AgentLeaveOptions): void; export declare function agentUpdateSelection(docId: string, selection: Record): void; export interface AgentTouchOptions { edit?: Omit & { at?: number; }; metadata?: Record; lingerMs?: number; } export declare function agentTouchDocument(docId: string, options?: AgentTouchOptions): void; export declare function agentApplyEditsIncrementally(docId: string, edits: Array<{ find: string; replace: string; }>, options?: { delayMs?: number; }): Promise; export declare function agentApplyPatchesIncrementally(docId: string, fieldName: string, patches: Array<{ op: string; path: string; value?: unknown; index?: number; from?: number; to?: number; }>, options?: { delayMs?: number; }): Promise;