import type { ComputedDefinition } from './types'; import type { AggregateResult, Aggregation, Caller, CollectionSchema, DataSourceDecorator, Filter, PaginatedFilter, Projection, RecordData } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; /** Decorator injects computed fields */ export default class ComputedCollection extends CollectionDecorator { readonly dataSource: DataSourceDecorator; protected computeds: Record; registerComputed(name: string, computed: ComputedDefinition): void; list(caller: Caller, filter: PaginatedFilter, projection: Projection): Promise; aggregate(caller: Caller, filter: Filter, aggregation: Aggregation, limit?: number): Promise; protected refineSchema(childSchema: CollectionSchema): CollectionSchema; } //# sourceMappingURL=collection.d.ts.map