import { Expression } from '../expression/expression.js'; import { OrderByItemNode } from '../operation-node/order-by-item-node.js'; import { StringReference } from './reference-parser.js'; import { ReferenceExpression } from './reference-parser.js'; export type OrderByDirection = 'asc' | 'desc'; export declare function isOrderByDirection(thing: unknown): thing is OrderByDirection; export type DirectedOrderByStringReference = `${StringReference | (keyof O & string)} ${OrderByDirection}`; export type UndirectedOrderByExpression = ReferenceExpression | (keyof O & string); export type OrderByExpression = UndirectedOrderByExpression | DirectedOrderByStringReference; export type OrderByDirectionExpression = OrderByDirection | Expression; export declare function parseOrderBy(args: any[]): OrderByItemNode[]; export declare function parseOrderByItem(ref: ReferenceExpression, direction?: OrderByDirectionExpression): OrderByItemNode;