devTools.d.ts 574 B

1234567891011121314
  1. import { AnyInterpreter } from './types';
  2. declare type ServiceListener = (service: AnyInterpreter) => void;
  3. export interface XStateDevInterface {
  4. register: (service: AnyInterpreter) => void;
  5. unregister: (service: AnyInterpreter) => void;
  6. onRegister: (listener: ServiceListener) => {
  7. unsubscribe: () => void;
  8. };
  9. services: Set<AnyInterpreter>;
  10. }
  11. export declare function getGlobal(): typeof globalThis | undefined;
  12. export declare function registerService(service: AnyInterpreter): void;
  13. export {};
  14. //# sourceMappingURL=devTools.d.ts.map