import { AfterViewInit, Injector, OnInit } from '@angular/core';
import { DataListBase } from '../../../classes/base/data-list-base';
import { CrudListSetting, EnumFileLayout } from '../../../classes/form-schema';
import { GridInfo } from '../../../models/grid-info';
import { DmChucVuService } from '../../../services/dm-chucvu.service';
import { UserGroupRealService } from '../../../services/user-group-real.service';
import { CoCauToChucService } from '../../cocautochuc/services/cocautochuc.service';
import { FileDataService } from '../../file-explorer/services/file-data.service';
import { EnumWorkflowHistoryStatus } from '../../statemachines/models/enums';
import { JsPlumbOption } from '../../statemachines/models/models';
import { WfSchema } from '../models/models';
import { WorkflowHistoryService } from '../services/workflow-history.service';
export declare class WorkflowHistoryNewComponent extends DataListBase implements OnInit, AfterViewInit {
    protected _injector: Injector;
    _workflowHistoryService: WorkflowHistoryService;
    protected _coCauToChucService: CoCauToChucService;
    protected _userGroupService: UserGroupRealService;
    protected _dmChucVuService: DmChucVuService;
    businessSetting: CrudListSetting;
    isRelativeForm: boolean;
    tableName: string;
    item: any;
    workflowSetting: any;
    layoutFile: typeof EnumFileLayout;
    enumWorkflowHistoryStatus: typeof EnumWorkflowHistoryStatus;
    fileDataService: FileDataService;
    currentWorkflow: {
        title: string;
        data: WfSchema;
    };
    waitToDetach: boolean;
    readyToRaw: boolean;
    workflowTitle: string;
    machinesData: any;
    jsPlumbOption: JsPlumbOption;
    currentConnection: any;
    machineCodeKetThucs: string[];
    generated: boolean;
    dataSourceAction: any[];
    stateDistance: number;
    topDistance: number;
    constructor(_injector: Injector, _workflowHistoryService: WorkflowHistoryService, _coCauToChucService: CoCauToChucService, _userGroupService: UserGroupRealService, _dmChucVuService: DmChucVuService, _fileDataService: FileDataService);
    ngOnInit(): void;
    init(): void;
    findLastHistoryAndGetData(): Promise<void>;
    regenerateMachineData(): Promise<void>;
    appendStateAfterLastState(machinesData: any, machinesDataRaw: any, left: any): Promise<void>;
    cloneMachine(machine: any, objTemp: any): any;
    cloneConnection(connection: any, sourceState: any, targetState: any): any;
    minimizeDatasourceAction(): Promise<void>;
    createDatasourceAction(): any[];
    private getDefaultFilter;
    modifyGridInfo(gridInfo?: GridInfo): Promise<void>;
    beforeRenderDataSource(dataSource: any): Promise<void>;
    afterGetData(): Promise<void>;
    private splitList;
    handleRowSelect(evt: any): void;
    private setCurrentConnection;
    private getConnectionFromHistory;
    rollbackByHistory(rowData: any): void;
    afterReloaded(): Promise<void>;
}
//# sourceMappingURL=workflow-history-new.component.d.ts.map