UNPKG

@xstate/inspect

Version:
25 lines 1.01 kB
import { ActorRef, XStateDevInterface } from 'xstate'; import { ReceiverEvent, Replacer } from './types'; export declare type InspectMachineEvent = ReceiverEvent | { type: 'unload'; } | { type: 'disconnect'; } | { type: 'xstate.event'; event: string; service: string; } | { type: 'xstate.inspecting'; client: Pick<ActorRef<any>, 'send'>; }; export declare function createInspectMachine(devTools?: XStateDevInterface, options?: { serialize?: Replacer | undefined; }): import("xstate").StateMachine<{ client?: Pick<ActorRef<any, any>, "send"> | undefined; }, any, InspectMachineEvent, { value: any; context: { client?: Pick<ActorRef<any, any>, "send"> | undefined; }; }, import("xstate").BaseActionObject, import("xstate").ServiceMap, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, InspectMachineEvent, import("xstate").BaseActionObject, import("xstate").ServiceMap>>; //# sourceMappingURL=inspectMachine.d.ts.map