import type { AggregateResult, Aggregation, Caller, Filter, PaginatedFilter, Projection, RecordData } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; /** * Avoid performing useless database requests: * Using segments + scopes + filters + jointure emulation often yields requests which have * mutually exclusive conditions or empty "In" leafs. */ export default class EmptyCollectionDecorator extends CollectionDecorator { list(caller: Caller, filter: PaginatedFilter, projection: Projection): Promise; update(caller: Caller, filter: Filter, patch: RecordData): Promise; delete(caller: Caller, filter: Filter): Promise; aggregate(caller: Caller, filter: Filter, aggregation: Aggregation, limit?: number): Promise; private returnsEmptySet; private leafReturnsEmptySet; private orReturnsEmptySet; private andReturnsEmptySet; } //# sourceMappingURL=collection.d.ts.map