import { QueryOptions, Expression, Query, Filterable } from "@agrejus/db-framework-core"; import { EntityMap } from "../../types"; import { QueryOrdering } from "../types"; import { IDataAccessManager } from '../../data-access/types'; export declare abstract class QueryRoot { protected readonly manager: IDataAccessManager; protected filters: Filterable[]; protected mapValue: EntityMap> | null; protected takeValue: number | null; protected skipValue: number | null; protected sorting: { direction: QueryOrdering; selector: EntityMap; }[]; protected minValue: boolean; protected maxValue: boolean; protected countValue: boolean; protected sumValue: boolean; protected distinctValue: boolean; protected subscribeValue: boolean; private _compiledQuery; constructor(queryable?: QueryRoot, manager?: IDataAccessManager); protected getQueryOptions(): QueryOptions; protected subscribeQuery(shape: (data: T[]) => U, done: (result: U, error?: any) => void): () => void; private _getSorting; private _getSortPropertyName; private _getFields; private _extractPropertyName; private _convertToExpression; protected getExpression(): Expression | null; protected getOrCompileQuery(): Query; protected getData(done: (result: T[], error?: any) => void): void; }