import type { HookHandler, HookPosition, HookType, HooksContext } from './types'; import type { AggregateResult, Aggregation, Caller, Filter, PaginatedFilter, Projection, RecordData } from '@forestadmin/datasource-toolkit'; import { CollectionDecorator } from '@forestadmin/datasource-toolkit'; export default class CollectionHookDecorator extends CollectionDecorator { private hooks; addHook

(position: P, type: T, handler: HookHandler): void; create(caller: Caller, data: RecordData[]): Promise; 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; } //# sourceMappingURL=collection.d.ts.map