index.d.ts 2.0 KB

12345678910111213141516171819202122
  1. import * as actions from './actions';
  2. import { Actor, toActorRef } from './Actor';
  3. import { interpret, Interpreter, InterpreterStatus, spawn } from './interpreter';
  4. import { createMachine, Machine } from './Machine';
  5. import { mapState } from './mapState';
  6. import { matchState } from './match';
  7. import { createSchema, t } from './schema';
  8. import { State } from './State';
  9. import { StateNode } from './StateNode';
  10. export { spawnBehavior } from './behaviors';
  11. export { XStateDevInterface } from './devTools';
  12. export * from './typegenTypes';
  13. export * from './types';
  14. export { matchesState, toEventObject, toObserver, toSCXMLEvent } from './utils';
  15. export { Actor, toActorRef, Machine, StateNode, State, mapState, actions, assign, cancel, send, sendTo, sendParent, sendUpdate, raise, log, pure, choose, stop, forwardTo, interpret, Interpreter, InterpreterStatus, matchState, spawn, doneInvoke, createMachine, createSchema, t };
  16. declare const assign: <TContext, TExpressionEvent extends import("./types").EventObject = import("./types").EventObject, TEvent extends import("./types").EventObject = TExpressionEvent>(assignment: import("./types").Assigner<import("./types").LowInfer<TContext>, TExpressionEvent> | import("./types").PropertyAssigner<import("./types").LowInfer<TContext>, TExpressionEvent>) => import("./types").AssignAction<TContext, TExpressionEvent, TEvent>, cancel: <TContext, TExpressionEvent extends import("./types").EventObject, TEvent extends import("./types").EventObject>(sendId: string | number) => import("./types").CancelAction<TContext, TExpressionEvent, TEvent>, send: typeof actions.send, sendTo: typeof actions.sendTo, sendParent: typeof actions.sendParent, sendUpdate: typeof actions.sendUpdate, forwardTo: typeof actions.forwardTo, doneInvoke: typeof actions.doneInvoke, raise: typeof actions.raise, log: typeof actions.log, pure: typeof actions.pure, choose: typeof actions.choose, stop: typeof actions.stop;
  17. declare global {
  18. interface SymbolConstructor {
  19. readonly observable: symbol;
  20. }
  21. }
  22. //# sourceMappingURL=index.d.ts.map