import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import * as i0 from '@angular/core'; 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 * as _c8y_client from '@c8y/client'; import { IManagedObject, FetchClient, InventoryService, TenantOptionsService, IResultList, IResult } from '@c8y/client'; import { RegisterDeviceFactory, RegisterDeviceItem } from '@c8y/ngx-components/register-device'; declare class SigfoxDeviceRegistrationButtonComponent { private modalService; constructor(modalService: BsModalService); open(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } interface SigfoxDevice { id: string; pac: string; deviceType: IManagedObject; contractId: string; prototype: boolean; productCertificate: string; error?: string; lnsConnectionName: string; } interface Contract { id: string; name: string; } interface SigfoxDeviceFormly extends SigfoxDevice { contract: Contract; connection: { name: string; description: string; baseUrl: string; parentGroupId: string; username: string; password: string; }; } declare class SigfoxProviderService { private client; private inventoryService; private tenantOptions; private translateService; private appState; private readonly baseUrl; private readonly registrationUrl; private readonly contractsUrl; private readonly header; constructor(client: FetchClient, inventoryService: InventoryService, tenantOptions: TenantOptionsService, translateService: TranslateService, appState: AppStateService); getConnections(): Promise<{ res: _c8y_client.IFetchResponse; data: any; }>; /** * Gets contracts from Sigfox platform. * @param connectionName The name of connection for which contracts will be retrieved * @returns The result list with contract, or throws an error with exception. */ getContracts(connectionName: string): Promise>; createDevice(device: SigfoxDevice): Promise>; getAvailableProtocols(filter?: object): Promise>; hasConnectivitySettings(): Promise; private throwNoConnectivitySettingsError; private throwConnectivitySettingsError; private throwRegistrationError; private throwDeviceProtocolsFetchError; private throwNoDeviceProtocolsError; private throwContractError; private throwNoContractsError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } type SigfoxState = 'loadPending' | 'loadSuccess' | 'loadError' | 'registrationPending' | 'registrationSuccess' | 'registrationError'; declare class SigfoxDeviceRegistrationComponent { bsModalRef: BsModalRef; private sigfoxService; private translateService; private gainsightService; stepper: C8yStepper; readonly PAGING: object; form: FormGroup<{}>; model: SigfoxDeviceFormly; 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: SigfoxState; errors$: BehaviorSubject; errorMessages$: rxjs.Observable; constructor(bsModalRef: BsModalRef, sigfoxService: SigfoxProviderService, translateService: TranslateService, gainsightService: GainsightService); create(event: { stepper: C8yStepper; step: CdkStep; }): Promise; getSigfoxDeviceToSend(): SigfoxDevice; getContracts$(name: any): rxjs.Observable>; getProtocols$(): rxjs.Observable>; getConnections$(): rxjs.Observable<{ res: packages_client_lib.IFetchResponse; data: any; }>; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class SigfoxDeviceRegistrationFactory implements RegisterDeviceFactory { private tenantService; constructor(tenantService: TenantUiService); get(): RegisterDeviceItem[]; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class SigfoxDeviceRegistrationModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { SigfoxDeviceRegistrationButtonComponent, SigfoxDeviceRegistrationComponent, SigfoxDeviceRegistrationFactory, SigfoxDeviceRegistrationModule }; //# sourceMappingURL=index.d.ts.map