/** * The data model for checklist */ import { MMELProvision } from '../serialize/interface/supportinterface'; import { MMELDataAttribute } from '../serialize/interface/datainterface'; import { ModalityType } from '../utils/constants'; import { EditorApproval, EditorDataClass, EditorEGate, EditorProcess, EditorRegistry } from './editormodel'; export declare type ChecklistSetting = Record; export interface ChecklistItem { id: string; progress: number; tasks: string[]; } export declare type EGatePath = string[]; export interface EGateCheckItem { id: string; progress: number; paths: EGatePath[]; } export declare type ChecklistUpdateList = Record; export declare type ChecklistTaskList = Record; export declare type EGatePathTaskList = Record; export declare type ChecklistNodeType = EditorProcess | EditorApproval | EditorDataClass | EditorRegistry | MMELDataAttribute | MMELProvision | EditorEGate; export interface ChecklistResult { checklist: ChecklistTaskList; egatelist: EGatePathTaskList; itemsDone: Record; inverted: ChecklistUpdateList; reached: Set; } export interface ChecklistCallback { onProgressChange: (id: string, progress: number) => void; } export interface ChecklistPackage { result: ChecklistResult; callback: ChecklistCallback; } export declare function getCheckListId(x: ChecklistNodeType, pid?: string): string; export declare function createCLItem(id: string, tasks?: string[]): ChecklistItem; export declare function addInvertedItem(inverted: ChecklistUpdateList, id: string, mother: string): void; //# sourceMappingURL=checklist.d.ts.map