import { HookEventMap, HookEventName, HookHandler, HooksConfig } from './types.js'; /** * Dispatches before/after mutation hooks to registered handlers. * Callers should check hasListeners before building expensive payloads (lazy load). */ export declare class HookDispatcher { private readonly handlers; constructor(config?: HooksConfig); on(event: E, handler: HookHandler): () => void; off(event: E, handler: HookHandler): void; hasListeners(event: HookEventName): boolean; /** * Invoke all handlers for an event with the same payload (built once by the caller). * Handlers run sequentially; the first throw aborts. */ emit(event: E, payload: HookEventMap[E]): Promise; } //# sourceMappingURL=HookDispatcher.d.ts.map