import type { Annotation, Session, SessionWithAnnotations } from "../types"; /** * List all sessions from the server. */ export declare function listSessions(endpoint: string): Promise; /** * Create a new session on the server. */ export declare function createSession(endpoint: string, url: string): Promise; /** * Get an existing session with its annotations. */ export declare function getSession(endpoint: string, sessionId: string): Promise; /** * Sync a new annotation to the server. * Returns the annotation with any server-assigned fields. */ export declare function syncAnnotation(endpoint: string, sessionId: string, annotation: Annotation): Promise; /** * Update an annotation on the server. */ export declare function updateAnnotation(endpoint: string, annotationId: string, data: Partial): Promise; /** * Delete an annotation from the server. */ export declare function deleteAnnotation(endpoint: string, annotationId: string): Promise; export type ActionResponse = { success: boolean; annotationCount: number; delivered: { sseListeners: number; webhooks: number; total: number; }; }; /** * Request the agent to act on annotations. * Emits an action.requested event via SSE to notify connected agents. * Returns delivery info so the UI can show accurate feedback. */ export declare function requestAction(endpoint: string, sessionId: string, output: string): Promise; //# sourceMappingURL=sync.d.ts.map