import type { PrimitiveObject } from '../../libs/bemedev/globals/types'; import type { ActorsConfigMap, EventsMap, ToEventObject, ToEvents } from '../../events/index.js'; import type { Action2, ActionConfig, ActionMap } from '../index.js'; export type ToAction_F = > = ToEventObject>>(events: E, actorsMap: A, action: ActionConfig, actions?: ActionMap) => Action2 | undefined; /** * Converts an ActionConfig to a function that can be executed with the provided eventsMap and actorsMap. * @param events of type {@linkcode EventsMap}, events map to use for resolving the action. * @param actorsMap of type {@linkcode ActorsConfigMap}, the actors map to use for resolving the action. * @param action of type {@linkcode ActionConfig}, action configuration to convert. * @param actions of type {@linkcode ActionMap}, The actions map containing functions to execute. * * @see {@linkcode PrimitiveObject} * @see {@linkcode ActionResult} * @see {@linkcode reduceFnMap} */ export declare const toAction: ToAction_F; //# sourceMappingURL=toAction.d.ts.map