import type { Action2 } from '../../actions/index.js'; import type { Cast, PrimitiveObject } from '../../libs/bemedev/globals/types'; import type { ActorsConfigMap, EventsMap, ToEventObject, ToEvents } from '../../events/index.js'; import type { Decompose } from '@bemedev/decompose'; import { type FnMap } from '../../types/index.js'; export type ExpandFnMap = , K extends Extract = Extract, R = D[K], E extends EventsMap = EventsMap, A extends ActorsConfigMap = ActorsConfigMap, T extends string = string, Eo extends ToEventObject> = ToEventObject>>(events: E, actorsMap: A, key: K, fn: FnMap, T, R>) => Action2, T>; /** * * @param events : type {@linkcode EventsMap} [E] - The events map. * @param promisees : type {@linkcode ActorsConfigMap} [P] - The promisees map. * @param key : type {@linkcode Decompose} [D] - The key to assign the result to in the context and the private context. * @param fn : type {@linkcode FnMap} [E, P, Pc, Tc, R] - The function to reduce the events and promisees and performs the action. * @returns a {@linkcode Action2} function. * * @see {@linkcode assignByKey} for assigning the result to the context and private context. * @see {@linkcode reduceFnMap} for reducing the events and promisees. * @see {@linkcode Decompose} for decomposing the private context and context into paths. * */ export declare const expandFnMap: ExpandFnMap; //# sourceMappingURL=expandFnMap.d.ts.map