import { StreamID } from 'streamr-client-protocol'; import { MetricsContext } from './helpers/Metric'; export declare type NodeId = string; export declare type TrackerId = string; export declare type Rtts = Record; export interface Location { latitude?: number; longitude?: number; country?: string; city?: string; } export interface StreamPartStatus { id: StreamID; partition: number; neighbors: NodeId[]; counter: number; } export interface Status { streamPart: StreamPartStatus; rtts: Rtts | null; location?: Location; started: string; version?: string; extra: Record; } export interface RtcErrorMessage { targetNode: NodeId; errorCode: string; } export interface AbstractNodeOptions { id?: NodeId; location?: Location; metricsContext?: MetricsContext; trackerPingInterval?: number; }