@zedux/atoms
Version:
A Molecular State Engine for React
41 lines (40 loc) • 1.71 kB
TypeScript
import { ActionChain } from '@zedux/core';
import { Ecosystem } from '../classes/Ecosystem';
import { SelectorCache } from '../classes/Selectors';
import { LifecycleStatus, AnyAtomInstance, DependentEdge, EvaluationReason, AnyAtomTemplate } from '../types/index';
export declare const pluginActions: {
ecosystemWiped: import("@zedux/core").ActionFactory<{
ecosystem: Ecosystem;
}, "ecosystemWiped">;
edgeCreated: import("@zedux/core").ActionFactory<{
dependency: AnyAtomInstance | SelectorCache;
dependent: AnyAtomInstance | SelectorCache | string;
edge: DependentEdge;
}, "edgeCreated">;
edgeRemoved: import("@zedux/core").ActionFactory<{
dependency: AnyAtomInstance | SelectorCache;
dependent: AnyAtomInstance | SelectorCache | string;
edge: DependentEdge;
}, "edgeRemoved">;
evaluationFinished: import("@zedux/core").ActionFactory<{
node: AnyAtomInstance | SelectorCache;
time: number;
}, "evaluationFinished">;
instanceReused: import("@zedux/core").ActionFactory<{
instance: AnyAtomInstance<"any">;
template: AnyAtomTemplate<"any">;
}, string>;
stateChanged: import("@zedux/core").ActionFactory<{
action?: ActionChain<any, string> | undefined;
cache?: SelectorCache<any, any[]> | undefined;
instance?: AnyAtomInstance<"any"> | undefined;
newState: any;
oldState: any;
reasons: EvaluationReason[];
}, "stateChanged">;
statusChanged: import("@zedux/core").ActionFactory<{
newStatus: LifecycleStatus;
node: AnyAtomInstance | SelectorCache;
oldStatus: LifecycleStatus;
}, "statusChanged">;
};