// Copyright © 2022-2026 Partium, Inc. DBA Partium import { BaseService } from "./base.service"; import { Observable } from "rxjs"; import { ServiceProvider } from "./service-provider"; /** * Service that provides functionality for contacting the Status-Backend to check * the current status of the Partium-Backend and if the SDKs version is compatible * with the Backend. */ export declare class BackendStatusService extends BaseService { private httpsClientService; private deviceStatusService; private statusEndpoint; private connectivityCheckFallback; private appVersion; private language; private timeout; constructor(serviceProvider: ServiceProvider); onCreate(): void; /** * Initializes the status service * * @param appVersion The version of the current application * @param language The desired language of the response message * @param statusEndpoint The status service to check for planned downtimes, availability and compatibilitiy * @param connectivityCheckFallback The endpoint that should be invoked to thest if an internet connection is available. This is example.com as default * @param timeout The timeout in milliseconds, used by all http requests. It defaults to 3 seconds */ init(appVersion: string, language: string, statusEndpoint: string, connectivityCheckFallback?: string, timeout?: number): void; /** * Check the compatibility of the app and the backend. * Resolves if compatible, throws error if incompatible. * Displays according error to the user if incompatible. */ checkCompatibility(): Observable; /** * Check the availability of the backend. * Resolves if compatible, throws error if incompatible. * Displays according error to the user if incompatible. */ checkAvailability(): Observable; /** * Checks the configuration */ private validateConfiguration; }