import type { Contract, JsonSchema, QueryOptions } from 'autumndb'; import type { ExtendedSocket } from './types'; export type CursorEventName = 'update' | 'ready' | 'error' | 'typing' | 'streamError'; export declare class JellyfishCursor { socket: ExtendedSocket; private options; private schema; private hasmore; private page; constructor(socket: ExtendedSocket, schema: JsonSchema, options: QueryOptions); hasNextPage(): boolean; getCurrenPage(): number; query(): Promise; nextPage(): Promise; prevPage(): Promise; on(event: CursorEventName, fn: () => void): JellyfishCursor; onUpdate(fn: () => void): JellyfishCursor; close(): JellyfishCursor; }