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