import type { FieldRef } from './conditions'; import type { OrderByResult } from '../entity/db-context'; /** * Type guard to check if a value is a FieldRef */ export declare function isFieldRef(value: unknown): value is FieldRef; /** * Type guard to check if a value has a field name (minimal FieldRef check) */ export declare function hasFieldName(value: unknown): value is { __fieldName: string; __dbColumnName?: string; __tableAlias?: string; }; /** * Type guard to check if a value is an aggregate field ref */ export declare function isAggregateFieldRef(value: unknown): value is FieldRef & { __isAggregate: true; }; /** * Order by field definition */ export interface OrderByField { field: string; table?: string; direction: 'ASC' | 'DESC'; } /** * Parse orderBy selector result and populate orderByFields array * Handles three forms: * 1. Single field: p => p.colName * 2. Array of fields: p => [p.colName, p.otherCol] * 3. Array of tuples: p => [[p.colName, 'ASC'], [p.otherCol, 'DESC']] */ export declare function parseOrderBy(result: OrderByResult, orderByFields: OrderByField[], getFieldName?: (fieldRef: any) => string, getTable?: (fieldRef: any) => string | undefined): void; /** * Get field name with table alias for qualified column names */ export declare function getQualifiedFieldName(fieldRef: any): string; /** * Get table alias from field ref */ export declare function getTableAlias(fieldRef: any): string | undefined; //# sourceMappingURL=query-utils.d.ts.map