/** * Opaque pagination cursor: URL-safe encoding of sort-column values and direction. */ export declare class Cursor { private readonly parameters; private readonly pointsToNext; /** * @param parameters - Column values for compound `ORDER BY`, keyed by column name. * @param pointsToNext - When true, seek forward along the sort order; when false, seek backward. */ constructor(parameters: Record, pointsToNext?: boolean); /** Get a cursor parameter value by column name. */ parameter(name: string): unknown; /** All cursor parameters (column name → value). */ parametersMap(): Record; /** Whether this cursor seeks the next slice in sort order. */ pointsToNextItems(): boolean; /** Whether this cursor seeks the previous slice in sort order. */ pointsToPreviousItems(): boolean; /** * Encode as base64url(JSON) for query strings. */ encode(): string; /** * Decode a cursor produced by {@link Cursor.encode}. * * @throws InvalidCursorException when the payload is malformed. */ static decode(encodedString: string): Cursor; /** * Build a cursor from a result row and the ordered sort columns. */ static fromItem(item: Record, columns: string[], pointsToNext?: boolean): Cursor; } //# sourceMappingURL=Cursor.d.ts.map