import { ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { MatBottomSheetRef } from '@angular/material/bottom-sheet'; import { CanColor } from '@angular/material/core'; import { MatDialog } from '@angular/material/dialog'; import { AtLeast, Constructor } from '@mtna/common'; import { MtnaErrorService } from '@mtna/lib-ui/error'; import { MtnaProcessManagerService } from './+state'; import { MtnaBaseProcess, MtnaProcessListItem, MtnaProcessManagerConfig, MtnaProcessManagerData } from './models'; import * as i0 from "@angular/core"; declare class MtnaProcessesManagerBase { _elementRef: ElementRef; constructor(_elementRef: ElementRef); } declare const _MtnaProcessManagerMixinBase: Constructor & typeof MtnaProcessesManagerBase; /** * MatBottomSheet that displays processes. * Will show multiple processes, their progress, and the ability to download the result upon completion (if enabled). * Will automatically query the statuses every 600ms while there are any incomplete. * * @author Will Davis */ export declare class MtnaProcessManagerComponent extends _MtnaProcessManagerMixinBase implements OnDestroy, OnInit { data: MtnaProcessManagerData; bottomSheetRef: MatBottomSheetRef; config: MtnaProcessManagerConfig; protected dialog: MatDialog; protected errorService: MtnaErrorService; protected cdr: ChangeDetectorRef; processService: MtnaProcessManagerService; /** Emitted when a process finishes */ processFinished: EventEmitter; /** Theme color, defaults to primary */ color: 'primary' | 'accent'; /** List of process details that will be displayed */ processDetails: MtnaProcessListItem[]; /** Ids currently being polled */ _pollingProcesses: AtLeast[]; _TEXT_close: string; /** Subscription for all the polling processes */ private _pollingSub; constructor(data: MtnaProcessManagerData, bottomSheetRef: MatBottomSheetRef, config: MtnaProcessManagerConfig, dialog: MatDialog, elementRef: ElementRef, errorService: MtnaErrorService, cdr: ChangeDetectorRef, processService: MtnaProcessManagerService); ngOnDestroy(): void; ngOnInit(): void; showDetails(item: MtnaProcessListItem): void; /** * Start polling a process ID. Will unsubscribe when the process completes. * @param process ID of the process to poll * @param pollInterval interval for polling in milliseconds, defaults to 600ms */ private _addProcessPoll; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};