/** * Modules are the high-level functions provided by the app. */ import { IconName } from '@blueprintjs/core'; import React from 'react'; import { ChangeLog } from '../changelog'; import { EditorModel } from '../editormodel'; import { RepoHistory } from '../history'; import { MapProfile } from '../mapmodel'; import { MMELRepo, RepoIndex, RepoItemType } from '../repo'; import { SMARTWorkspace } from '../workspace'; export declare type ModelModuleConfig = BaseConfig & { type: 'model'; view: React.FC void; index: RepoIndex; linktoAnotherRepo: (x: MMELRepo) => void; repoHis: RepoHistory; setRepoHis: (x: RepoHistory) => void; setClickListener: (f: (() => void)[]) => void; model: EditorModel; mapping: MapProfile; ws: SMARTWorkspace; changelog: ChangeLog; }>; }; export declare type DocModuleConfig = BaseConfig & { type: 'doc'; view: React.FC; }; export declare type NeutralModuleConfig = BaseConfig & { type: 'neutral'; view: React.FC void; index: RepoIndex; }>; }; interface BaseViewProps { isVisible: boolean; className?: string; repo?: MMELRepo; } /** * The common configuration of Module functions of the app */ interface BaseConfig { title: string; description: string; icon: IconName; } export declare type ModuleType = ModuleConfiguration['type']; export declare type ModuleConfiguration = ModelModuleConfig | DocModuleConfig | NeutralModuleConfig; /** * It is the list of modules avaiable in the app */ declare const MODULES: readonly ["repo", "modelViewer", "modelEditor", "modelMapper", "modelImplement", "docViewer", "linkAnalysis", "nlp", "docEdit"]; export declare type ModuleName = typeof MODULES[number]; /** * Controls which modules are visible in different modes */ export declare const ModuleList: Record; export declare const MODULE_CONFIGURATION: Record; export {}; //# sourceMappingURL=appModule.d.ts.map