import { WithFilter, PlatformizedFilterBuilder, FilterTree } from '../filter'; import { Sort } from '../sort/sortMixin'; export declare abstract class QueryBase> implements WithFilter { /** * @internal */ protected readonly filterBuilder: PlatformizedFilterBuilder; /** * @internal */ protected readonly sort: Sort; /** * @internal */ readonly collectionName: string; protected constructor(origin: { collectionName: string; filterBuilder?: PlatformizedFilterBuilder; sort?: Sort; }); /** * @internal */ protected abstract copy(params: { filterBuilder?: PlatformizedFilterBuilder; sort?: Sort; }): Self; abstract get invalidArguments(): string[]; get filterTree(): Record; /** * @internal */ setFilterModel(filterTree: Record): Self; /** * @internal */ getFilterModel(): FilterTree; private withFilter; eq: WithFilter['eq']; ne: WithFilter['ne']; ge: WithFilter['ge']; gt: WithFilter['gt']; gte: WithFilter['gte']; le: WithFilter['le']; lt: WithFilter['lt']; lte: WithFilter['lte']; isNotEmpty: WithFilter['isNotEmpty']; isEmpty: WithFilter['isEmpty']; startsWith: WithFilter['startsWith']; endsWith: WithFilter['endsWith']; contains: WithFilter['contains']; hasSome: WithFilter['hasSome']; in: WithFilter['in']; hasAll: WithFilter['hasAll']; exists: WithFilter['exists']; or: WithFilter['or']; and: WithFilter['and']; not: WithFilter['not']; between: WithFilter['between']; private extractFilter; get orderBy(): { [field: string]: 'asc' | 'desc'; }[]; /** * Adds a sort to a query or sort, sorting by the specified properties in ascending order. * * The `ascending()` function refines this query in ascending order of the specified properties. If you specify more * than one property, `ascending()` sorts the results in ascending order by each property in the order they are listed. * * You can sort the following types: * - Number: Sorts numerically. * - Date: Sorts by date and time. * - String: Sorts lexicographically, so `"abc"` comes after `"XYZ"`. * - Reference: Compares by the ID of the referenced item as a String. * * If a property contains a number as a String, that value will be sorted alphabetically and not numerically. * Items that do not have a value for the specified sort property are ranked lowest. * @public * @documentationMaturity preview * @param fields - The properties used in the sort. * @requiredField fields * @returns An object representing the refined query. */ ascending(...fields: string[]): Self; ascending(fields: string[]): Self; /** * Adds a sort to a query or sort, sorting by the specified properties in descending order. * * The `descending()` function refines this query to sort in descending order of the specified properties. If you * specify more than one property, descending() sorts the results in descending order by each property in the order * they are listed. * * You can sort the following types: * * Number: Sorts numerically. * - Date: Sorts by date and time. * - String: Sorts lexicographically, so `"abc"` comes before `"XYZ"`. * - Reference: Compares by the ID of the referenced item as a String. * * If a property contains a number as a String, that value will be sorted alphabetically and not numerically. Items * that do not have a value for the specified sort property are ranked lowest. * @public * @documentationMaturity preview * @param fields - The properties used in the sort. * @requiredField fields * @returns An object representing the refined query. */ descending(...fields: string[]): Self; descending(fields: string[]): Self; } //# sourceMappingURL=QueryBase.d.ts.map