import type { INodeInfoProtocol } from '@iota/types'; /** * Network types. */ export declare enum Network { Mainnet = 0, Testnet = 1 } /** * Basic Auth or JWT. */ export interface IAuth { jwt?: string; username?: string; password?: string; } /** * Options for the MQTT broker. */ export interface IMqttBrokerOptions { automaticDisconnect?: boolean; /** timeout in seconds */ timeout?: number; useWs?: boolean; port?: number; maxReconnectionAttempts?: number; } /** * A node object for the client. */ export interface INode { url: string; auth?: IAuth; disabled?: boolean; } /** * Struct containing network and PoW related information */ export interface INetworkInfo { /** Protocol parameters */ protocolParameters: INodeInfoProtocol; /** Minimum proof of work score*/ minPowScore: number; /** Local proof of work */ localPow: boolean; /** Fallback to local proof of work if the node doesn't support remote Pow */ fallbackToLocalPow: boolean; /** Tips request interval during PoW in seconds */ tipsInterval: number; }