@tanstack/db
Version:
A reactive client store for building super fast apps on sync
15 lines (14 loc) • 841 B
text/typescript
import { BasicExpression, OrderBy } from '../query/ir.js';
/**
* Build a continuation cursor from the leading order term.
* Trailing terms order the complete leading-value tie loaded separately.
*/
export declare function buildCursor(orderBy: OrderBy, values: Array<unknown>): BasicExpression<boolean> | undefined;
/** Build the equality range that closes the first ordered boundary term. */
export declare function buildCursorCurrent(orderBy: OrderBy, values: ReadonlyArray<unknown>): BasicExpression<boolean> | undefined;
/**
* Whether the public predicate IR can express this boundary's comparison.
* Unsupported values must use an unbounded fetch rather than a provider order
* that may differ from the local comparator.
*/
export declare function canExpressCursorOrder(orderBy: OrderBy, values: ReadonlyArray<unknown>): boolean;