/** * Lifecycle hooks. Decorated instance methods run on the hydrated entity around * entity-based writes (`insert*`, `save`). They run in declaration order, are * awaited sequentially, and a throw aborts the write. * * Before-hooks may mutate the entity and run **before** validation and before * the document is prepared for the driver. Filter-based bulk paths * (`updateMany`, `updateOne`, `bulkWrite`, `bulkUpsert`) do **not** run * per-entity hooks. */ export declare const BeforeInsert: () => MethodDecorator; export declare const AfterInsert: () => MethodDecorator; export declare const BeforeUpdate: () => MethodDecorator; export declare const AfterUpdate: () => MethodDecorator; export declare const BeforeDelete: () => MethodDecorator; export declare const AfterDelete: () => MethodDecorator; //# sourceMappingURL=hooks.d.ts.map