import * as i0 from '@angular/core'; import { EventEmitter, Injector, ElementRef, OnInit, OnDestroy } from '@angular/core'; import { BsModalRef, BsModalService } from 'ngx-bootstrap/modal'; import { UpgradeComponent } from '@angular/upgrade/static'; import { ActivatedRouteSnapshot, ActivatedRoute } from '@angular/router'; import * as i1 from '@angular/common'; import * as i2 from '@c8y/ngx-components'; import { OptionsService, OperationRealtimeService, ManagedObjectRealtimeService, AlertService } from '@c8y/ngx-components'; import * as i3 from '@c8y/ngx-components/operations/operations-timeline'; import * as rxjs from 'rxjs'; import { Observable, BehaviorSubject } from 'rxjs'; import { OperationService, IResult, IOperation, IManagedObject, IResultList } from '@c8y/client'; declare function rootScopeCommandTemplateFactory($injector: Injector): any; declare class CommandTemplatesComponent { modalRef: BsModalRef; onTemplateSelected: EventEmitter; constructor(modalRef: BsModalRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class CommandTemplates extends UpgradeComponent { close: EventEmitter; dismiss: EventEmitter; constructor(elementRef: ElementRef, injector: Injector); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class CommandTemplatesModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DeviceShellGuard { private readonly operation; canActivate(route: ActivatedRouteSnapshot): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DeviceShellSharedModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare enum CommandDeliveryType { DEFAULT = "Default", SMS = "SMS" } interface DeliveryType { name: string; default?: boolean; } interface Command { id: string; name: string; text: string; deliveryTypes: string[]; command: string; category: string; } declare class DeviceShellService { private optionsService; private operationService; constructor(optionsService: OptionsService, operationService: OperationService); getDeliveryTypes(): DeliveryType[]; canSendCommandsViaSMS(): Promise; createCommandOperation(deviceId: string, command: Command, deliveryType: CommandDeliveryType): Promise>; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class DeviceShellComponent implements OnInit, OnDestroy { service: DeviceShellService; operationRealtime: OperationRealtimeService; private moRealtime; private operationService; private route; private modalService; private alertService; device: IManagedObject; device$: Observable; deliveryTypes: Array; command: Command; smsEnabled: boolean; sendingCommand$: BehaviorSubject; operations: IResultList; filterPipe: rxjs.UnaryFunction, Observable>; executeViaLabel: "Execute via ({{deliveryType}})"; private destroyed$; constructor(service: DeviceShellService, operationRealtime: OperationRealtimeService, moRealtime: ManagedObjectRealtimeService, operationService: OperationService, route: ActivatedRoute, modalService: BsModalService, alertService: AlertService); ngOnInit(): Promise; getPredefinedCommand(): void; resetSupportedDeliveryTypes(): void; execute(commandDeliveryType: any): Promise; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class ShellModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class DeviceShellModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { CommandDeliveryType, CommandTemplates, CommandTemplatesComponent, CommandTemplatesModule, DeviceShellComponent, DeviceShellGuard, DeviceShellModule, DeviceShellService, DeviceShellSharedModule, ShellModule, rootScopeCommandTemplateFactory }; export type { Command, DeliveryType }; //# sourceMappingURL=index.d.ts.map