/** * @file hooks.ts * @description Lifecycle hook decorators: @BeforeCreate, @AfterCreate, @BeforeUpdate, @AfterUpdate, @BeforeDestroy, @AfterDestroy * @description Decoradores de hooks de ciclo de vida: @BeforeCreate, @AfterCreate, @BeforeUpdate, @AfterUpdate, @BeforeDestroy, @AfterDestroy */ /** * @description Runs before the record is created (opt-in via { hook: true }). `this` is the instance and may be mutated. * @description Se ejecuta antes de crear el registro (opt-in con { hook: true }). `this` es la instancia y puede mutarse. */ export declare const BeforeCreate: () => (target: any, property_key: string | symbol) => void; /** * @description Runs after the record is created (opt-in via { hook: true }). `this` is the persisted instance. * @description Se ejecuta después de crear el registro (opt-in con { hook: true }). `this` es la instancia persistida. */ export declare const AfterCreate: () => (target: any, property_key: string | symbol) => void; /** * @description Runs before the record is updated (opt-in via { hook: true }). Receives the changes delta as argument. * @description Se ejecuta antes de actualizar el registro (opt-in con { hook: true }). Recibe el delta de cambios como argumento. */ export declare const BeforeUpdate: () => (target: any, property_key: string | symbol) => void; /** * @description Runs after the record is updated (opt-in via { hook: true }). Receives the changes delta as argument. * @description Se ejecuta después de actualizar el registro (opt-in con { hook: true }). Recibe el delta de cambios como argumento. */ export declare const AfterUpdate: () => (target: any, property_key: string | symbol) => void; /** * @description Runs before the record is destroyed (opt-in via { hook: true }). `this` is the instance to remove. * @description Se ejecuta antes de eliminar el registro (opt-in con { hook: true }). `this` es la instancia a eliminar. */ export declare const BeforeDestroy: () => (target: any, property_key: string | symbol) => void; /** * @description Runs after the record is destroyed (opt-in via { hook: true }). `this` is the removed instance. * @description Se ejecuta después de eliminar el registro (opt-in con { hook: true }). `this` es la instancia eliminada. */ export declare const AfterDestroy: () => (target: any, property_key: string | symbol) => void;