import type { PrimitiveObject } from '../../libs/bemedev/globals/types'; import type { ActorsConfigMap, EventsMap, ToEventObject, ToEvents } from '../../events/index.js'; import type { DelayFunction3, DelayMap } from '../types'; export type ToDelay_F = > = ToEventObject>>(events: E, actorsMap: A, delay: string, delays?: DelayMap) => DelayFunction3 | undefined; /** * Converts a delay configuration to a function that returns the delay in milliseconds. * If the delay is a number, it returns a function that returns that number. * If the delay is a function, it reduces the function map with the provided events and actors. * * @param events of type {@linkcode EventsMap} [E], the events map to use for resolving the delay. * @param actorsMap of type {@linkcode ActorsConfigMap} [A], the actors map to use for resolving the delay. * @param delay of type string, The delay configuration. * @param delays of type {@linkcode DelayMap}, the map of delays containing functions to execute. * @returns a function that returns the delay in milliseconds or undefined if not found. * * @see {@linkcode PrimitiveObject} * @see {@linkcode reduceFnMap} */ export declare const toDelay: ToDelay_F; //# sourceMappingURL=toDelay.d.ts.map