import { OnInit } from '@angular/core';
import { CommonService } from '../../services/common.service';
import { CrudService } from '../../services/crud.service';
import { HighPerformanceService } from '../../services/high-performance.service';
import { NotifierService } from '../../services/notifier.service';
import { SignalRService } from '../../services/signalr.service';
import { TemplateService } from '../../services/template.service';
import { FileExplorerService } from '../file-explorer/services/file-explorer.service';
import { ExportJob, JobItem } from './base-job/job-item';
import { TnCustomScrollbarComponent } from '../tn-custom-scrollbar/tn-custom-scrollbar.component';
export declare class ReportQueueComponent implements OnInit {
    private _notifierService;
    private _commonService;
    private _fileService;
    private _tempateService;
    private _signalRService;
    private _highPerformanceService;
    private _crudService;
    parentDataModel: any;
    name: string;
    header: string;
    autoDownload: boolean;
    scrollbar: TnCustomScrollbarComponent;
    maxNameLength: number;
    expand: boolean;
    queueName: string;
    hub: string;
    dicStatus: import("../../public-api").SimpleDictionary;
    statuses: {
        Waiting: number;
        Exporting: number;
        Success: number;
        Error: number;
        Downloaded: number;
    };
    _queue: JobItem[];
    maxHeight: number;
    itemHeight: number;
    popupHeight: number;
    constructor(_notifierService: NotifierService, _commonService: CommonService, _fileService: FileExplorerService, _tempateService: TemplateService, _signalRService: SignalRService, _highPerformanceService: HighPerformanceService, _crudService: CrudService);
    ngOnInit(): void;
    toggleExpand(): void;
    /**
     * Thêm job vào để thực hiện
     */
    addJob(exportJob: ExportJob): Promise<void>;
    /**
     * Thêm job vào để thực hiện
     *  - templateCode: code template cấu hình bên quản trị
     *  - data: dữ liệu export
     *  - fileName: tên của file được lưu
     *  - useSignalR: thay vì gọi request và chờ đến khi thực hiện xong
     *      trả về binaryFile thì tạo tiến trình riêng để export, và dùng signalR thông
     *      báo kết quả export, trả về fileId để tải.
     */
    addJobWithData(templateCode: string, data: any, fileName: any, useSignalR?: boolean): Promise<void>;
    Export(job: JobItem): Promise<void>;
    ExportWithSignalR(job: JobItem): Promise<void>;
    ExportCxExcelByCodeWithHPS(job: JobItem): Promise<void>;
    download(job: any): void;
    showQueue(): boolean;
    getName(job: any): any;
    cancelJob(job: any): void;
    close(): void;
    updatePopupHeight(): void;
}
//# sourceMappingURL=report-queue.component.d.ts.map