import { Status } from "../../DataFrame"; import { IDevice } from "../Devices/IDevice"; import { ResponseResult } from "../FieldChangeResult"; import { ICustomUpdateActions } from "./CustomUpdateActions/ICustomUpdateActions"; import { ControllerUpdatesInfo, ControllerUpdateType, ControllerVersion, DeviceUpdateShortInfo, IDeviceUpdateInfo, UpdateHistory } from "./IUpdateInfo"; import { Update } from "./IUpdatesProvider"; import { BulkUpdateResult, DownloadProgress, IUpdatesService, UpdateAction, UpdateBranch, UpdateErrorCode, UpdateProgress } from './IUpdatesService'; export declare class UpdatesService implements IUpdatesService { static readonly ServiceName: string; private _updateProviders; private _controllerUpdates; private _logger; private _connection; private _appStateService; private _extensionService; private _updateRequestTimeout; private _oldUpdateVersion; private _oldUpdateBuild; private _updateOfflineStageTime; constructor(); IsBranchAndAutomaticUpdatesSettingSupportedAsync(): Promise; DownloadControllerUpdateAsync(downloadProgress: DownloadProgress): Promise>; InstallControllerOrRadioUpdateAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateGuid: string): Promise>; InstallControllerOrRadioUpdateAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress): Promise>; GetAutomaticControllerUpdateDownloadStatusAsync(): Promise>; GetServiceName(): string; CheckDeviceVersionAsync(deviceGuid: string): Promise>; CheckDeviceVersionAsync(device: IDevice): Promise>; CheckDeviceUpdateAsync(deviceGuid: string): Promise>; CheckDeviceUpdateAsync(device: IDevice): Promise>; CheckDeviceUpdatesBulkAsync(reloadCache?: boolean): Promise>; InstallDeviceUpdateAsync(device: IDevice, updateProgress: UpdateProgress, updateAction?: UpdateAction | undefined, force?: boolean): Promise | Status.OK>; InstallDeviceUpdateAsync(dev: string, updateProgress: UpdateProgress, updateAction?: UpdateAction | undefined, force?: boolean): Promise | Status.OK>; InstallDevicesUpdateBulkAsync(deviceGuids: string[], updateProgress: UpdateProgress, updateAction?: UpdateAction): Promise>; CheckControllerSoftwareUpdateAvailabilityAsync(): Promise; CanCancelFailedControllerUpdateOrGetPendingUpdateProgress(): boolean; CancelFailedControllerUpdateAsync(): Promise; CheckControllerPendingUpdateProgressAsync(updateProgress: UpdateProgress, downloadProgess: DownloadProgress): Promise | Status.OK>; CheckDevicesUpdatesAvailabilityAsync(): Promise; CheckControllerUpdatesAsync(): Promise; CheckControllerVersionAsync(): Promise>; GetControllerUpdateBranchAsync(): Promise | UpdateBranch>; SetControllerUpdateBranchAsync(updateBranch: UpdateBranch): Promise | Status.OK>; EnableAutomaticControllerUpdateDownloadAsync(): Promise>; DisableAutomaticControllerUpdateDownloadAsync(): Promise>; GetControllerUpdatesHistoryAsync(): Promise>; InstallControllerUpdateAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateGuid: string, downloadOnly: boolean, updateAction?: UpdateAction | undefined): Promise | Status.OK>; InstallControllerUpdateAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, updateAction?: UpdateAction | undefined): Promise | Status.OK>; protected UpdateControllerUsingScriptAsync(update: Update, updateProgress: UpdateProgress): Promise | Status.OK>; private DownloadControllerUpdateNewApiAsync; private InstallUpdateNewApiAsync; protected InstallControllerUpdateUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress): Promise | Status.OK>; protected DownloadControllerUpdateUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, downloadOnly: boolean): Promise | Status.OK>; protected UpdateControllerUsingApiAsync(updateProgress: UpdateProgress, downloadProgress: DownloadProgress, downloadOnly: boolean): Promise | Status.OK>; private getRuntimeInfoAsync; } /** * @type Class */ export declare class ControllerUpdateNotAvailableInfo { UpdatedResourceName: Map; CurrentResourceVersion: string; UpdateType: ControllerUpdateType | null; ResponseResult: ResponseResult | null; }