import { Compiler, NgModuleRef } from '@angular/core'; import { CqrsRegistryType, IAction, IQuery } from './interfaces'; import { CqrsHandler } from './interfaces/handler.type'; export declare class CqrsLoader { private moduleRef; private compiler; readonly registry: CqrsRegistryType[]; /** Map of unregistered cqrs handlers and their respective module paths to load. */ handlersToLoad: Map Promise>; /** Map of cqrs handlers that are in the process of being loaded and registered. */ handlersLoading: Map>; /** Map of cqrs handlers successfully registered. */ handlersLoaded: Map; constructor(moduleRef: NgModuleRef, compiler: Compiler, registry: CqrsRegistryType[]); hasHandler(action: IAction | IQuery): boolean; execute(action: IAction | IQuery): Promise; load(action: IAction | IQuery): Promise; }