import type { State } from "../types/index.js"; import type { Projection } from "./projection-builder.js"; /** * Registers a state into a states map and action/event registries, * merging with existing same-name states (partial state support). */ export declare function register_state(state: State, states: Map>, actions: Record, events: Record): void; /** * Merges reactions from one event register into another. The target is * assumed to already contain entries for every event name in the source * (e.g., act-builder's `.withSlice()` registers the slice's states first, * which seeds the target events). Reactions are keyed by `handler.name`; * two distinct handlers sharing a name on the same event throw rather than * silently overwriting (ACT-979). Re-merging the identical reaction object * is idempotent — mirrors {@link register_batch_handler}. */ export declare function merge_event_register(target: Record; }>, source: Record; }>): void; /** * Merges a projection's event schemas and reactions into an event registry, * deduplicating reaction names by appending "_p" on collision. */ export declare function merge_projection(proj: Projection, events: Record): void; export declare const _this_: ({ stream }: { stream: string; }) => { source: string; target: string; }; //# sourceMappingURL=merge.d.ts.map