import type { PrimitiveObject } from '../libs/bemedev/globals/types'; import type { EventObject } from '../events/index.js'; import type { FnMap, FnR } from '../types/index.js'; /** * Delay type definition. * The function takes in a context object and returns a delay in milliseconds. * @template : type {@linkcode EventObject} [E], the events map. * @template : [Pc], the type of the private context. * @template : type {@linkcode PrimitiveObject} [Tc], the type of the context. * @returns : A number or a {@linkcode FnMap} function that returns a number. */ export type DelayFunction = number | FnMap; export type DelayFunction2 = number | DelayFunction3; export type DelayFunction3 = FnR; /** * Delay configuration map. * Maps a string key to a {@linkcode DelayFunction} function. * @template : type {@linkcode EventObject} [E] - The events map. * @template : [Pc] - The type of the private context. * @template : type {@linkcode PrimitiveObject} [Tc] - The type of the context. * @returns : A partial record where each key is a string and each value is a {@linkcode DelayFunction}. */ export type DelayMap = Partial>>; //# sourceMappingURL=types.d.ts.map