// Copyright © 2022-2026 Partium, Inc. DBA Partium import { BaseService } from './base.service'; import { DeviceInfo } from '..'; /** * Class that defines structure of a device-status-service implementation. * It contains functions that give information about the device status, * such as network-connectivity. * * An implementation of this service is required and has to be configured during * the initialization phase of Partium. * * This class file is called interface, even though it is not an interface, * but we need it to be a concrete class for the serviceProvider. */ export declare class DeviceStatusService extends BaseService { /** * Returns Promise that resolves with true if connection to a network is available. * (Usually the internet, but for intranet-only systems it can also be only intranet) * * Method should be overridden by child-class * * @returns promise that resolves with true or false, depending on whether a * network-connection is available or not */ isConnectionAvailable(): Promise; /** * Returns Promise that resolves with a DeviceInfo object, containing * information about the device and the installation. * Used for logging. * * Method should be overridden by child-class * * @returns Promise that resolves with DeviceInfo */ getDeviceInfo(): Promise; }