/** * DingDong Machine - XState v5 native * * Responds to DING events with DONG after a random delay. * Demonstrates the Mailbox pattern for sequential message processing. */ export declare const State: { readonly idle: "ding-dong/idle"; readonly busy: "ding-dong/busy"; }; export declare const Type: { readonly DING: "ding-dong/DING"; readonly DONG: "ding-dong/DONG"; }; export declare const Event: { DING: (i: number) => { readonly type: "ding-dong/DING"; readonly payload: { readonly i: number; }; }; DONG: (i: number) => { readonly type: "ding-dong/DONG"; readonly payload: { readonly i: number; }; }; }; export interface Context { i: number; } export declare const initialContext: () => Context; export declare const machine: import("xstate").StateMachine, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, "randomMs", import("xstate").StateValue, string, unknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, any>; declare const _default: { id: string; State: { readonly idle: "ding-dong/idle"; readonly busy: "ding-dong/busy"; }; Type: { readonly DING: "ding-dong/DING"; readonly DONG: "ding-dong/DONG"; }; Event: { DING: (i: number) => { readonly type: "ding-dong/DING"; readonly payload: { readonly i: number; }; }; DONG: (i: number) => { readonly type: "ding-dong/DONG"; readonly payload: { readonly i: number; }; }; }; initialContext: () => Context; machine: import("xstate").StateMachine, import("xstate").ProvidedActor, import("xstate").ParameterizedObject, import("xstate").ParameterizedObject, "randomMs", import("xstate").StateValue, string, unknown, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, any>; }; export default _default; //# sourceMappingURL=ding-dong-machine.d.ts.map