import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import * as i0 from '@angular/core'; import * as _c8y_client from '@c8y/client'; import { IManagedObject, FetchClient, InventoryService, IResult, IResultList } from '@c8y/client'; import * as rxjs from 'rxjs'; import { Subject, BehaviorSubject } from 'rxjs'; import * as packages_client_lib from 'packages/client/lib'; import { CdkStep } from '@angular/cdk/stepper'; import { FormGroup } from '@angular/forms'; import * as i1 from '@c8y/ngx-components'; import { AppStateService, C8yStepper, GainsightService, TenantUiService } from '@c8y/ngx-components'; import { FormlyFieldConfig } from '@ngx-formly/core'; import { TranslateService } from '@ngx-translate/core'; import { RegisterDeviceFactory, RegisterDeviceItem } from '@c8y/ngx-components/register-device'; declare class LoriotDeviceRegistrationButtonComponent { private modalService; constructor(modalService: BsModalService); open(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface LoriotDevice { title: string; deveui: string; appeui: string; appkey: string; appid: string; deviceType: IManagedObject; error?: string; lnsConnectionName: string; } interface Application { deviceLimit: number; devices: number; hexId: string; name: string; outputs: Array; } interface LoriotDeviceFormly extends LoriotDevice { connection: { name: string; description: string; baseUrl: string; username: string; password: string; }; application: Application; } declare class LoriotProviderService { private client; private inventoryService; private translateService; private appState; private readonly baseUrl; private readonly registrationUrl; private readonly header; private readonly applicationsUrl; constructor(client: FetchClient, inventoryService: InventoryService, translateService: TranslateService, appState: AppStateService); getConnections(): Promise<{ res: _c8y_client.IFetchResponse; data: any; }>; createDevice(device: LoriotDevice): Promise>; getAvailableProtocols(filter?: object): Promise>; getApplications(connectionName: string): Promise>; private throwNoConnectivitySettingsError; private throwConnectivitySettingsError; private throwRegistrationError; private throwDeviceProtocolsFetchError; private throwNoDeviceProtocolsError; private throwApplicationError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } type LoriotState = 'loadPending' | 'loadSuccess' | 'loadError' | 'registrationPending' | 'registrationSuccess' | 'registrationError'; declare class LoriotDeviceRegistrationComponent { bsModalRef: BsModalRef; private loriotService; private gainsightService; stepper: C8yStepper; readonly PAGING: object; form: FormGroup<{}>; model: LoriotDeviceFormly; protocols$: rxjs.Observable>; connections$: rxjs.Observable<{ res: packages_client_lib.IFetchResponse; data: any; }>; unsubscribe$: Subject; load$: rxjs.Observable; fields: FormlyFieldConfig[]; registrationStepLabels: { next: "Register"; }; finalStepLabels: { back: "Close"; }; state: LoriotState; errors$: BehaviorSubject; errorMessages$: rxjs.Observable; constructor(bsModalRef: BsModalRef, loriotService: LoriotProviderService, gainsightService: GainsightService); create(event: { stepper: C8yStepper; step: CdkStep; }): Promise; getLoriotDeviceToSend(): LoriotDevice; getProtocols$(): rxjs.Observable>; getConnections$(): rxjs.Observable<{ res: packages_client_lib.IFetchResponse; data: any; }>; getApplications$(name: any): rxjs.Observable>; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LoriotDeviceRegistrationFactory implements RegisterDeviceFactory { private tenantService; constructor(tenantService: TenantUiService); get(): RegisterDeviceItem[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class LoriotDeviceRegistrationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { LoriotDeviceRegistrationButtonComponent, LoriotDeviceRegistrationComponent, LoriotDeviceRegistrationFactory, LoriotDeviceRegistrationModule }; //# sourceMappingURL=index.d.ts.map