import { contentRoutingSymbol, peerRoutingSymbol } from '@libp2p/interface'; import { CID } from 'multiformats/cid'; import type { DelegatedRoutingV1HttpApiClient as DelegatedRoutingV1HttpApiClientInterface, DelegatedRoutingV1HttpApiClientInit, GetProvidersOptions, GetPeersOptions, GetIPNSOptions, PeerRecord, DelegatedRoutingV1HttpApiClientComponents, GetClosestPeersOptions } from './index.js'; import type { ContentRouting, PeerRouting, AbortOptions, PeerId } from '@libp2p/interface'; import type { IPNSRecord } from 'ipns'; export declare class DelegatedRoutingV1HttpApiClient implements DelegatedRoutingV1HttpApiClientInterface { #private; readonly url: URL; private started; private readonly httpQueue; private readonly shutDownController; private readonly timeout; private readonly contentRouting; private readonly peerRouting; private readonly filterAddrs?; private readonly filterProtocols?; private readonly inFlightRequests; private readonly cacheName; private cache?; private readonly cacheTTL; private log; /** * Create a new DelegatedContentRouting instance */ constructor(components: DelegatedRoutingV1HttpApiClientComponents, init: DelegatedRoutingV1HttpApiClientInit & { url: string | URL; }); get [contentRoutingSymbol](): ContentRouting; get [peerRoutingSymbol](): PeerRouting; isStarted(): boolean; start(): Promise; stop(): Promise; getProviders(cid: CID, options?: GetProvidersOptions): AsyncGenerator; getPeers(peerId: PeerId, options?: GetPeersOptions): AsyncGenerator; getClosestPeers(key: CID | PeerId, options?: GetClosestPeersOptions): AsyncGenerator; getIPNS(libp2pKey: CID, options?: GetIPNSOptions): Promise; putIPNS(libp2pKey: CID, record: IPNSRecord, options?: AbortOptions): Promise; toString(): string; private logRequest; private logResponse; } //# sourceMappingURL=client.d.ts.map