import type { CollectionSlug } from '../../../index.js'; import type { BeforeOperationArg, OperationArgs, OperationMap } from './types.js'; /** * TODO V4: remove overloads and operations should be the literal operation that was called * * - `read`: replace with `find` and `findByID` in both operations * - `delete`: replace with `deleteByID` in deleteByID operation * - `update`: replace with `updateByID` in updateByID operation */ /** * @deprecated * * Should use `find` or `findByID` */ export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'read'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; /** * Overload for 'readDistinct' operation * * @deprecated - use `findDistinct` */ export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'readDistinct'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'update'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'updateByID'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'delete'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; export declare function buildBeforeOperation(operationArgs: { args: TArgs; operation: 'deleteByID'; } & Omit, 'args' | 'context' | 'operation' | 'req'>): Promise; export declare function buildBeforeOperation>(operationArgs: { operation: O; } & Omit, 'context' | 'req'>): Promise>; //# sourceMappingURL=buildBeforeOperation.d.ts.map