import type { EmitterConfig } from '../../actor.types'; import type { PrimitiveObject } from '../../libs/bemedev/globals/types'; import type { ActorsConfigMap, EventsMap, ToEventObject, ToEvents } from '../../events/index.js'; import type { SimpleMachineOptions } from '../../machine/index.js'; import type { Emitter } from '../types'; export type ToEmitter_F = > = ToEventObject>>(events: E, actorsMap: A, emitter: EmitterConfig & { __id: string; }, options?: SimpleMachineOptions) => Emitter; /** * Converts an emitter config to an emitter object with a source and transitions. * @param events of type {@linkcode EventsMap}, the events map. * @param actorsMap of type {@linkcode ActorsConfigMap}, the actors map. * @param src of type {@linkcode EmitterSrcConfig}, the emitter configuration to convert. * @param emitters of type {@linkcode SimpleMachineOptions}, the machine options. * @returns an emitter object with a source and transitions. * * @see {@linkcode toEmitterSrc} for converting the source. * @see {@linkcode toTransition} for converting transitions. * @see {@linkcode toArray.typed} for the type of the context. * @see {@linkcode ToEmitter_F} for more details */ export declare const toEmitter: ToEmitter_F; //# sourceMappingURL=to.d.ts.map