UNPKG

@emeraldpay/api-node

Version:
14 lines (13 loc) 638 B
import { ConnectionListener } from '@emeraldpay/api'; import { ChannelCredentials } from '@grpc/grpc-js'; import { NativeChannel } from '../channel'; import { MonitoringClient as ProtoMonitoringClient } from '../generated/monitoring_grpc_pb'; export declare class MonitoringClient { readonly client: ProtoMonitoringClient; readonly channel: NativeChannel; readonly credentials: ChannelCredentials; readonly retries: number; constructor(address: string, credentials: ChannelCredentials, agents: string[], retries?: number); setConnectionListener(listener: ConnectionListener): void; ping(): Promise<boolean>; }