import { IStateTreeNode } from '../core'; import { IDisposer } from "../utils"; export declare type ISerializedActionCall = { name: string; path?: string; args?: any[]; }; export interface IActionRecorder { actions: ReadonlyArray; stop(): any; replay(target: IStateTreeNode): any; } export declare function applyAction(target: IStateTreeNode, actions: ISerializedActionCall | ISerializedActionCall[]): void; export declare function recordActions(subject: IStateTreeNode): IActionRecorder; export declare function onAction(target: IStateTreeNode, listener: (call: ISerializedActionCall) => void, attachAfter?: boolean): IDisposer;