overmind
Version:
Frictionless state management
18 lines (16 loc) • 1.65 kB
TypeScript
import { MachineMethods, Statemachine, statemachine } from "./statemachine.js";
import { ENVIRONMENT, MODE_DEFAULT, MODE_SSR, MODE_TEST, json } from "./utils.js";
import { IAction, IConfiguration, IContext, IOperator, IReaction, IState } from "./types.js";
import { ContextFunction, EventType, OperatorContextFunction, Options, ResolveAction } from "./internalTypes.js";
import { Overmind } from "./Overmind.js";
import { branch, catchError, debounce, filter, fork, noop, parallel, pipe, throttle, tryCatch, wait, waitUntil, when } from "./operators.js";
import { createMutationOperator, createOperator } from "./operator.js";
import { SERIALIZE, rehydrate } from "./rehydrate.js";
import { OvermindMock, createOvermindMock } from "./OvermindMock.js";
import { OvermindSSR, createOvermindSSR } from "./OvermindSSR.js";
//#region src/index.d.ts
declare const derived: <S extends object, R extends object, O>(cb: (state: S, rootState: R) => O) => O;
declare function createOvermind<Config extends IConfiguration>(config: Config, options?: Options): Overmind<Config>;
//#endregion
export { type ContextFunction, ENVIRONMENT, EventType, IAction, IConfiguration, IContext, IOperator, IReaction, IState, MODE_DEFAULT, MODE_SSR, MODE_TEST, type MachineMethods, type OperatorContextFunction, Overmind, OvermindMock, OvermindSSR, type ResolveAction, SERIALIZE, type Statemachine, branch, catchError, createMutationOperator, createOperator, createOvermind, createOvermindMock, createOvermindSSR, debounce, derived, filter, fork, json, noop, parallel, pipe, rehydrate, statemachine, throttle, tryCatch, wait, waitUntil, when };
//# sourceMappingURL=index.d.ts.map