@zedux/atoms
Version:
A Molecular State Engine for React
19 lines (18 loc) • 749 B
TypeScript
import { Ecosystem } from '../classes/Ecosystem';
import { stack } from '../classes/EvaluationStack';
import { StackItem } from '../utils/index';
export declare let internalStore: import("@zedux/core").Store<Record<string, Ecosystem<any>>>;
export declare const getEcosystem: (id: string) => Ecosystem | undefined;
export declare const getInternals: () => {
stack: StackItem[];
store: import("@zedux/core").Store<Record<string, Ecosystem<any>>>;
};
/**
* Used in child windows. Makes different instances of Zedux reuse the parent
* window's internal store and evaluation stack.
*/
export declare const setInternals: (internals: {
stack: StackItem[];
store: typeof internalStore;
}) => void;
export declare const wipe: () => void;