import { OffsetMap } from '@actyx/sdk'; import * as immutable from 'immutable'; import { Observable } from '../node_modules/rxjs'; /** * All the info we got for a single node * * This might grow in the future to include things like timestamps * @public */ export declare type NodeInfoEntry = { own?: number; swarm?: number; }; /** * All the info we got for our device in relation to the swarm * @public */ export declare type SwarmInfo = { nodes: immutable.Map; }; /** * Mutable swarm counters information. * @public */ export declare type CountersMut = { /** * The pond has it, the swarm doesn't */ own: number; /** * The swarm has it, the pond does not */ swarm: number; /** * Both the pond and the swarm have it */ both: number; }; /** * Immutable swarm counters information. * @public */ export declare type Counters = Readonly; /** * Summary of swarm info * @public */ export declare type SwarmSummary = { info: SwarmInfo; sources: Counters; events: Counters; }; export declare const toSwarmSummary: (info: SwarmInfo) => SwarmSummary; export declare const swarmState: (own: Observable, pubSub: Observable) => Observable; /** SwarmSummary associated functions. * @public */ export declare const SwarmSummary: { empty: SwarmSummary; fromSwarmInfo: (info: SwarmInfo) => SwarmSummary; };