import type forgotPassword from '../../auth/operations/forgotPassword';
import type login from '../../auth/operations/login';
import type refresh from '../../auth/operations/refresh';
import type { PayloadRequest } from '../../express/types';
import type { SanitizedCollectionConfig, TypeWithID } from '../config/types';
import type create from './create';
import type deleteOperation from './delete';
import type deleteByID from './deleteByID';
import type find from './find';
import type findByID from './findByID';
import type update from './update';
import type updateByID from './updateByID';
export type AfterOperationMap<T extends TypeWithID> = {
    create: typeof create;
    delete: typeof deleteOperation;
    deleteByID: typeof deleteByID;
    find: typeof find<T>;
    findByID: typeof findByID<T>;
    forgotPassword: typeof forgotPassword;
    login: typeof login;
    refresh: typeof refresh;
    update: typeof update;
    updateByID: typeof updateByID;
};
export type AfterOperationArg<T extends TypeWithID> = {
    /** The collection which this hook is being run on */
    collection: SanitizedCollectionConfig;
    req: PayloadRequest;
} & ({
    args: Parameters<AfterOperationMap<T>['create']>[0];
    operation: 'create';
    result: Awaited<ReturnType<AfterOperationMap<T>['create']>>;
} | {
    args: Parameters<AfterOperationMap<T>['delete']>[0];
    operation: 'delete';
    result: Awaited<ReturnType<AfterOperationMap<T>['delete']>>;
} | {
    args: Parameters<AfterOperationMap<T>['deleteByID']>[0];
    operation: 'deleteByID';
    result: Awaited<ReturnType<AfterOperationMap<T>['deleteByID']>>;
} | {
    args: Parameters<AfterOperationMap<T>['find']>[0];
    operation: 'find';
    result: Awaited<ReturnType<AfterOperationMap<T>['find']>>;
} | {
    args: Parameters<AfterOperationMap<T>['findByID']>[0];
    operation: 'findByID';
    result: Awaited<ReturnType<AfterOperationMap<T>['findByID']>>;
} | {
    args: Parameters<AfterOperationMap<T>['forgotPassword']>[0];
    operation: 'forgotPassword';
    result: Awaited<ReturnType<AfterOperationMap<T>['forgotPassword']>>;
} | {
    args: Parameters<AfterOperationMap<T>['login']>[0];
    operation: 'login';
    result: Awaited<ReturnType<AfterOperationMap<T>['login']>>;
} | {
    args: Parameters<AfterOperationMap<T>['refresh']>[0];
    operation: 'refresh';
    result: Awaited<ReturnType<AfterOperationMap<T>['refresh']>>;
} | {
    args: Parameters<AfterOperationMap<T>['update']>[0];
    operation: 'update';
    result: Awaited<ReturnType<AfterOperationMap<T>['update']>>;
} | {
    args: Parameters<AfterOperationMap<T>['updateByID']>[0];
    operation: 'updateByID';
    result: Awaited<ReturnType<AfterOperationMap<T>['updateByID']>>;
});
export declare const buildAfterOperation: <T extends TypeWithID = any, O extends keyof AfterOperationMap<T> = keyof AfterOperationMap<T>>(operationArgs: Omit<AfterOperationArg<T>, "req"> & {
    operation: O;
}) => Promise<Awaited<ReturnType<AfterOperationMap<T>[O]>>>;
//# sourceMappingURL=utils.d.ts.map