import type { Hooks } from "./types.js"; type HookName = keyof Hooks; /** * Safely dispatch a lifecycle hook. * * - No-ops if the hook is not defined. * - Awaits async hooks. * - Catches and warns on errors — hooks should never crash the loop. */ export declare function dispatchHook(hooks: Hooks | undefined, name: K, ctx: Parameters>[0] extends infer C ? C : any): Promise; export {};