import { Map, Set } from "immutable"; import { AggregateField, ColumnField, DerivedField, Field, Filter, FindAllRequest, FindCountRequest, FindRequest, Orm } from "../../models"; import { FindCountPlan, FindModelsPlan, FindPlan } from "./plan"; export declare type FindableField = ColumnField | DerivedField | AggregateField; export declare abstract class FindPlanner { protected requestOrm: Orm; protected findRequest: FindRequest; protected fields: Set; protected aliasedFieldsByOrm: Map>; protected orms: Set; protected filters: Map; protected ormsByBase: Map>; protected fieldsByBase: Map>; protected plan: Plan; constructor(requestOrm: Orm, findRequest: FindRequest); getPlan(): Plan; protected abstract buildPlan(): Plan; protected addOrm(orm: Orm): void; protected addField(field: Field | { [key: string]: Field; }): void; private addOrmFilter; private getOrmAuthFilter; private addColumnField; private addDerivedField; private addAggregateField; private addPluckedJoinOneField; private addPartitionedJoinManyField; private addPluckedJoinManyField; private addJoinField; private addComposite; private actuallyAddField; private removeAliasedField; } export declare class FindCountPlanner extends FindPlanner { protected requestOrm: Orm; protected findRequest: FindCountRequest; constructor(requestOrm: Orm, findRequest: FindCountRequest); protected buildPlan(): FindCountPlan; private getCountPlan; } export declare class FindModelsPlanner extends FindPlanner { protected requestOrm: Orm; protected findRequest: FindAllRequest; constructor(requestOrm: Orm, findRequest: FindAllRequest); protected buildPlan(): FindModelsPlan; private buildChildPlan; }