import { EffectOf, EffectPropsMap } from './types.js'; export type EffectHandler = (effect: EffectOf) => void; export type EffectHandlerRegistry = Record; export declare const EFFECT_HANDLER_REGISTRY_EXTENSION = "effects"; export declare function useEffectHandlerRegistry(): EffectHandlerRegistry; export type EffectHandlerRegistryFor = Record; /** * Author a handler against `EffectHandler<"my.type">` for a typed payload, then * register it through this — it erases the type parameter for the loose registry. */ export declare function effectHandler(_type: TType, fn: EffectHandler): EffectHandler; export declare const builtinEffectHandlers: EffectHandlerRegistryFor; export declare function mergeEffectHandlers(...registries: Array): EffectHandlerRegistry;