import type { PeerDiscovery, PeerDiscoveryEvents } from "@libp2p/interface-peer-discovery"; import { symbol } from "@libp2p/interface-peer-discovery"; import { EventEmitter } from "@libp2p/interfaces/events"; import { Multiaddr } from "@multiformats/multiaddr"; export interface Options { /** * The maximum of peers to connect to as part of the bootstrap process. * * @default The length of the passed `peers` array. */ maxPeers?: number; /** * The interval between emitting addresses in milliseconds. * * @default {@link PeerDiscoveryStaticPeers.DefaultInterval} */ interval?: number; } /** * Pass a list of multiaddr that will be used to bootstrap a node. */ export declare class PeerDiscoveryStaticPeers extends EventEmitter implements PeerDiscovery { static DefaultInterval: number; private readonly peers; private timer?; private readonly interval; /** * @param peers Multiaddrs of peers to connect to. * @param opts */ constructor(peers: string[] | Multiaddr[], opts?: Options); /** * Start emitting static peers. */ start(): void; private _startTimer; _returnPeers(): void; /** * Stop emitting peers. */ stop(): void; get [symbol](): true; get [Symbol.toStringTag](): string; }