/** * Baby Machine - XState v5 native * * A complex state machine demonstrating the Mailbox pattern with * multiple states, delays, and reply actions. */ export declare const State: { readonly awake: "baby/awake"; readonly asleep: "baby/asleep"; }; export declare const Type: { readonly SLEEP: "baby/SLEEP"; readonly DREAM: "baby/DREAM"; readonly CRY: "baby/CRY"; readonly PEE: "baby/PEE"; readonly PLAY: "baby/PLAY"; readonly REST: "baby/REST"; readonly EAT: "baby/EAT"; }; export declare const Event: { SLEEP: (ms: number) => { readonly type: "baby/SLEEP"; readonly payload: { readonly ms: number; }; }; DREAM: () => { readonly type: "baby/DREAM"; }; CRY: () => { readonly type: "baby/CRY"; }; PEE: () => { readonly type: "baby/PEE"; }; PLAY: () => { readonly type: "baby/PLAY"; }; REST: () => { readonly type: "baby/REST"; }; EAT: () => { readonly type: "baby/EAT"; }; }; export interface Context { ms?: number; } export declare const initialContext: () => Context; /** * Baby state machine behavior: * - (Awake) receives SLEEP(ms) -> transitions to (Asleep) * - (Asleep) after ms/2 -> CRY, after ms -> wake up * - Emits various events on entry/exit of states */ export declare const machine: import("xstate").StateMachine; declare const _default: { id: string; State: { readonly awake: "baby/awake"; readonly asleep: "baby/asleep"; }; Type: { readonly SLEEP: "baby/SLEEP"; readonly DREAM: "baby/DREAM"; readonly CRY: "baby/CRY"; readonly PEE: "baby/PEE"; readonly PLAY: "baby/PLAY"; readonly REST: "baby/REST"; readonly EAT: "baby/EAT"; }; Event: { SLEEP: (ms: number) => { readonly type: "baby/SLEEP"; readonly payload: { readonly ms: number; }; }; DREAM: () => { readonly type: "baby/DREAM"; }; CRY: () => { readonly type: "baby/CRY"; }; PEE: () => { readonly type: "baby/PEE"; }; PLAY: () => { readonly type: "baby/PLAY"; }; REST: () => { readonly type: "baby/REST"; }; EAT: () => { readonly type: "baby/EAT"; }; }; initialContext: () => Context; machine: import("xstate").StateMachine; }; export default _default; //# sourceMappingURL=baby-machine.d.ts.map