import { EvaEndpoint } from "../endpoint.js"; export type TEvaContextReachability = "REACHABLE" | "UNREACHABLE" | "SLOW" | "DISCONNECTED"; export type TEvaContextRole = "CLOUD" | "WATCHTOWER" | "STORE"; export declare class EvaContextEndpointStatus { /** * The role of an endpoint signifies its purpose with 'CLOUD' being the most used. * The WATCHTOWER and STORE endpoints will be important for (in-store) POS solutions */ private _role$; get role$(): import("rxjs").Observable; get role(): TEvaContextRole; /** * The current status indicates if the endpoint was recently reachable and can also indicate if it is slow to respond */ private _status$; get status$(): import("rxjs").Observable; get status(): TEvaContextReachability; /** * Helper attribute to get a boolean state for reachability */ reachable$: import("rxjs").Observable; get reachable(): boolean; /** * Last recorded call latency in milliseconds */ private _latency$; get latency$(): import("rxjs").Observable; get latency(): number; private _endpoint; private _organizationUnitId?; private _reachabilityCheckInterval; private _reachabilityFailCheckInterval; private _reachabilityTimer?; private _reachabilityRetryCount; private _slowThresholdMilliseconds; private _serviceCallTimeout?; constructor({ endpoint, organizationUnitId, reachabilityCheckInterval, role, serviceCallTimeout, slowThresholdMilliseconds, status, reachabilityFailCheckInterval, }: { endpoint: EvaEndpoint; organizationUnitId?: string; reachabilityCheckInterval?: number; role: TEvaContextRole; serviceCallTimeout?: number; slowThresholdMilliseconds?: number; status: TEvaContextReachability; reachabilityFailCheckInterval?: number; }); private checkReachability; private scheduleReachabilityCheck; start(): void; stop(): void; } //# sourceMappingURL=endpoint-status.d.ts.map