import { Region, State } from '.'; /** * Represents an instance of a state machine model at runtime; contains the active state configuration and manages transactions. * There can be many seperate state machine instances using a common model. */ export declare class Instance extends Map { readonly name: string; readonly root: State; /** * The currently active transaction * @hidden */ private transaction; /** * Creates a new state machine instance conforming to a particular state machine model. * @param name The name of the state machine instance. * @param root The root state of the state machine instance. */ constructor(name: string, root: State); /** * Evaluates a trigger event to see if it causes a state transition. * @param trigger The trigger event to evaluate. * @returns Returns true if the trigger event caused a change in the active state configuration or was deferred. */ evaluate(trigger: any): boolean; /** * Performs an operation that may alter the active state configuration with a transaction. * @param TReturn The return type of the transactional operation. * @param operation The operation to perform within a transaction. * @return Returns the result of the operation. */ private transactional; /** * Evaluates deferred trigger events. * @hidden */ private evaluateDeferred; /** * Processes the deferred event pool. * @hidden */ private processDeferred; /** * Returns the name of the state machine instance. * @returns Returns the name of the state machine instance. */ toString(): string; }