import { Status } from "../../DataFrame"; import { IEvent } from "../../Event"; import { IDIService } from "../../IDIService"; import { ITypedEvent } from '../../TypedEvent'; import { ResponseResult } from "../FieldChangeResult"; export interface IControllerConfigurationService extends IDIService { OnEnteredConfigurationEvent(): IEvent; OnExitedConfigurationEvent(): IEvent; OnConfigurationChangedEvent(): IEvent; OnConfigurationTimeCheckedEvent(): ITypedEvent; CheckIfConfigurationHasChangedAsync(): Promise; GetLastConfigurationChangeTimeAsync(): Promise; DidCofigurationChangeAsync(): Promise; EnterConfigurationModeAsync(): Promise; ExitConfigurationModeAsync(): Promise; FactoryResetAsync(func: (progress: number) => void): Promise; RollbackLastUpdateAsync(func: (progress: number) => void): Promise; RestartControllerAsync(func: (progress: number) => void): Promise; GetControllerSystemTimeAsync(): Promise; SetControllerSystemTimeAsync(date: Date): Promise; StartNtpTimeSynchronizationAsync(): Promise; ExportControllerConfigurationAsync(): Promise>; CanExportOrImportControllerConfigurationAsync(): Promise; ImportControllerConfigurationAsync(file: File): Promise; /** * Checks if the controller software version is enough. * @param requiredContainerMajor The required major version. * @param requiredContainerMinor The required minor version. * @returns True if the current version is enough, false otherwise. */ CheckIfControllerSoftwareVersionIsEnough(requiredContainerMajor: number, requiredContainerMinor: number): boolean; } export declare enum ControllerConfigurationErrorCode { CannotExportConfiguration = "CannotExportConfiguration" }