1 | import type { StateNode } from "./StateNode.js";
|
2 | import type { AnyActorRef, AnyEventObject, AnyMachineSnapshot, AnyStateMachine, AnyTransitionConfig, ErrorActorEvent, EventObject, MachineContext, Mapper, NonReducibleUnknown, Observer, SingleOrArray, StateValue, TransitionConfigTarget } from "./types.js";
|
3 | export declare function matchesState(parentStateId: StateValue, childStateId: StateValue): boolean;
|
4 | export declare function toStatePath(stateId: string | string[]): string[];
|
5 | export declare function pathToStateValue(statePath: string[]): StateValue;
|
6 | export declare function mapValues<P, O extends Record<string, unknown>>(collection: O, iteratee: (item: O[keyof O], key: keyof O, collection: O, i: number) => P): {
|
7 | [key in keyof O]: P;
|
8 | };
|
9 | export declare function toArray<T>(value: readonly T[] | T | undefined): readonly T[];
|
10 | export declare function resolveOutput<TContext extends MachineContext, TExpressionEvent extends EventObject>(mapper: Mapper<TContext, TExpressionEvent, unknown, EventObject> | NonReducibleUnknown, context: TContext, event: TExpressionEvent, self: AnyActorRef): unknown;
|
11 | export declare function isErrorActorEvent(event: AnyEventObject): event is ErrorActorEvent;
|
12 | export declare function toTransitionConfigArray(configLike: SingleOrArray<AnyTransitionConfig | TransitionConfigTarget>): Array<AnyTransitionConfig>;
|
13 | export declare function normalizeTarget<TContext extends MachineContext, TEvent extends EventObject>(target: SingleOrArray<string | StateNode<TContext, TEvent>> | undefined): ReadonlyArray<string | StateNode<TContext, TEvent>> | undefined;
|
14 | export declare function toObserver<T>(nextHandler?: Observer<T> | ((value: T) => void), errorHandler?: (error: any) => void, completionHandler?: () => void): Observer<T>;
|
15 | export declare function createInvokeId(stateNodeId: string, index: number): string;
|
16 | export declare function resolveReferencedActor(machine: AnyStateMachine, src: string): any;
|
17 | export declare function getAllOwnEventDescriptors(snapshot: AnyMachineSnapshot): any[];
|