import { Query, QueryObject } from '../storage'; import { Timestamp } from '../use-timestamp'; export interface ReplayQuery { query(query: Query & { where: { timestamp: { type: 'between'; min: Timestamp<'ns'>; max: Timestamp<'ns'>; }; }; }): Promise<{ timestamp: Timestamp<'ns'>; payload: V; }[]>; } export declare function useReplayStorageCursor(): { get(query: ReplayQuery): { size(): number; peek(): { timestamp: Timestamp<"ns">; payload: T; }; dequeue(): { timestamp: Timestamp<"ns">; payload: T; }; completed(): boolean; fetchNextPage(): Promise; }; cursor(): Promise<{ size(): number; peek(): { timestamp: Timestamp<"ns">; payload: any; }; dequeue(): { timestamp: Timestamp<"ns">; payload: any; }; completed(): boolean; fetchNextPage(): Promise; } | undefined>; }; //# sourceMappingURL=use-replay-storage-cursor.d.ts.map