import { Filter, Table } from 'sqlex'; import { Model } from 'sqlex/dist/schema'; export interface CursorQueryOptions { where?: Filter; orderBy?: string[]; cursor?: string; limit?: number; before?: boolean; withTotal?: boolean; } export declare function cursorQuery(table: Table, options: CursorQueryOptions): Promise<{ rows: any; totalCount: any; }>; export declare function encodeCursor(data: any): string; export declare function decodeCursor(cursor: any): any; export declare function matchUniqueKey(model: Model, spec: string[]): string[];