import { CID } from 'multiformats/cid'; import type { DelegatedRoutingV1HttpApiClient } from './index.js'; import type { ContentRouting, PeerRouting, AbortOptions, PeerId, PeerInfo, Provider } from '@libp2p/interface'; /** * Wrapper class to convert [http-routing-v1 content events](https://specs.ipfs.tech/routing/http-routing-v1/#response-body) into returned values */ export declare class DelegatedRoutingV1HttpApiClientContentRouting implements ContentRouting { private readonly client; constructor(client: DelegatedRoutingV1HttpApiClient); findProviders(cid: CID, options?: AbortOptions): AsyncIterable; provide(): Promise; cancelReprovide(): Promise; put(key: Uint8Array, value: Uint8Array, options?: AbortOptions): Promise; get(key: Uint8Array, options?: AbortOptions): Promise; toString(): string; } /** * Wrapper class to convert [http-routing-v1](https://specs.ipfs.tech/routing/http-routing-v1/#response-body-0) events into expected libp2p values */ export declare class DelegatedRoutingV1HttpApiClientPeerRouting implements PeerRouting { private readonly client; constructor(client: DelegatedRoutingV1HttpApiClient); findPeer(peerId: PeerId, options?: AbortOptions): Promise; getClosestPeers(key: Uint8Array, options?: AbortOptions): AsyncIterable; toString(): string; } //# sourceMappingURL=routings.d.ts.map