MOON
Server: Apache
System: Linux nserver.cafsindia.com 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: cafsindia (1002)
PHP: 8.2.30
Disabled: NONE
Upload Files
File: //home/cafsindia/snap.cafsinfotech.in/node_modules/xstate/es/json.d.ts
import { StateNode, ActionObject, Guard, InvokeDefinition } from './';
interface JSONFunction {
    $function: string;
}
export declare function stringifyFunction(fn: Function): JSONFunction;
interface TransitionConfig {
    target: string[];
    source: string;
    actions: Array<ActionObject<any, any>>;
    cond: Guard<any, any> | undefined;
    eventType: string;
}
interface StateNodeConfig {
    type: StateNode['type'];
    id: string;
    key: string;
    initial?: string;
    entry: Array<ActionObject<any, any>>;
    exit: Array<ActionObject<any, any>>;
    on: {
        [key: string]: TransitionConfig[];
    };
    invoke: Array<InvokeDefinition<any, any>>;
    states: Record<string, StateNodeConfig>;
}
export declare function machineToJSON(stateNode: StateNode): StateNodeConfig;
export declare function stringify(machine: StateNode): string;
export declare function parse(machineString: string): StateNodeConfig;
export declare function jsonify<T extends Record<string, any>>(value: T): T;
export {};
//# sourceMappingURL=json.d.ts.map