electron-event-flux
Version:
Redux store which synchronizes between instances in multiple process
64 lines • 2.71 kB
TypeScript
import AppStore from './AppStore';
import MultiWinManagerStore from './MultiWinManagerStore';
import ActionRecordStore from './ActionRecordStore';
import MultiWinStore from './MultiWinStore';
import { Logger } from './utils/loggerApply';
import { IStoresObjDeclarer } from './IStoresDeclarer';
import IExtendStoreBase, { IExtendStoreBaseConstructor } from './IExtendStoreBase';
export default function buildMultiWinAppStore(stores: IStoresObjDeclarer, winStores: IStoresObjDeclarer, { WindowsManagerStore, ActionStore, WinHandleStore, }: {
WindowsManagerStore?: typeof MultiWinManagerStore;
ActionStore?: typeof ActionRecordStore;
WinHandleStore?: typeof MultiWinStore;
}, logger: Logger): {
_stateListeners: {
[key: string]: any;
};
_stateFilters: {
[key: string]: any;
};
_stateFiltersInit: boolean;
appStores: any;
getDefaultFilter(): {
[key: string]: any;
};
_initForClientId: (clientId: string) => void;
_initStateFilters(): void;
_initWrap(): void;
_handleAddWin(clientId: string): void;
_handleRemoveWin(clientId: string): void;
_setFilter(clientId: string, newFilter: any): void;
listen: (this: any, clientId: string) => void;
unlisten: (this: any, clientId: string) => void;
buildStores(): void;
initStores(parentStore?: IExtendStoreBase): void;
startObserve(): void;
disposeStores(): void;
getSubStores(): IExtendStoreBase[];
getSubStoreInfos(): ["Item" | "List" | "Map", IExtendStoreBaseConstructor, string, string, any][];
setStore?(storeKey: string, store: IExtendStoreBase | import("./utils/StoreList").default | import("./utils/StoreMap").default): void;
getStore?(storeKey: string): IExtendStoreBase | import("./utils/StoreList").default | import("./utils/StoreMap").default;
getStores?(): IExtendStoreBase[];
handleFilterChange?(): void;
_appStore: AppStore;
options: any;
parentStore: import("./StoreBase").default;
state: any;
emitter: import("event-kit").Emitter<{
[key: string]: any;
}, {}>;
inWillUpdate: boolean;
willUpdateStates: any[];
_isInit: boolean;
__FLUX_STORE__: boolean;
willInit(): void;
init(): void;
buildStore(storeClass: IExtendStoreBaseConstructor, args: any[], options?: any): IExtendStoreBase;
setState(state: any): void;
onDidUpdate(callback: (state: any) => void): import("event-kit").Disposable;
onWillUpdate(callback: (state: any) => void): import("event-kit").Disposable;
observe(callback: (state: any) => void): import("event-kit").Disposable;
dispose(): void;
destroy(): void;
getState(): any;
};
//# sourceMappingURL=MainAppStore.d.ts.map