import type { HookEvent, Querier, Type } from '../type/index.js'; /** * Context passed to lifecycle hooks, providing access to the active querier * so hooks can perform DB operations within the same transaction. */ export type HookContext = { readonly querier: Querier; }; /** * Run all registered hooks for the given event on each payload. * Hooks are invoked with `this` bound to the payload via `call`, * so mutations go directly to the original object. */ export declare function runHooks(entity: Type, event: HookEvent, payloads: E[], ctx: HookContext): Promise; //# sourceMappingURL=hook.util.d.ts.map