import type { PrimitiveObject } from '../../libs/bemedev/globals/types'; import type { ActorsConfigMap, EventsMap, ToEventObject, ToEvents } from '../../events/index.js'; import type { GuardConfig } from '../index.js'; import type { StateExtended } from '../../states/index.js'; import { type GuardDefUnion } from '@bemedev/boolean-recursive'; import type { PredicateMap, PredicateS3 } from '../types'; export type _ToPredicateF = > = ToEventObject>>(events: E, actorsMap: A, guard: GuardConfig, predicates?: PredicateMap) => { func?: GuardDefUnion<[StateExtended]> | undefined; errors: string[]; }; export type ToPredicate_F = > = ToEventObject>>(events: E, actorsMap: A, guard: GuardConfig, predicates?: PredicateMap) => { predicate?: PredicateS3 | undefined; errors: string[]; }; /** * * @param events of type {@linkcode EventsMap} [E], the events map to use for resolving the predicate. * @param promisees of type {@linkcode PromiseeMap} [P], the promisees map to use for resolving the predicate. * @param guard of type {@linkcode GuardConfig}, the guard configuration to convert to a predicate. * @param predicates of type {@linkcode PredicateMap}, the map of predicates containing functions to execute. * @returns an object containing the predicate function and any errors encountered during the conversion. * * @see {@linkcode PrimitiveObject} * @see {@linkcode PredicateS3} * @see {@linkcode GuardDefUnion} * @see {@linkcode reduceFnMap} * @see {@linkcode isDescriber} * @see {@linkcode isString} * @see {@linkcode castings} * @see {@linkcode GUARD_TYPE} * @see {@linkcode recursive} */ export declare const toPredicate: ToPredicate_F; //# sourceMappingURL=toPredicate.d.ts.map