import type { MessageType, SendQueryEvent, PeerResponseEvent, AddPeerEvent, ValueEvent, ProviderEvent, QueryErrorEvent, FinalPeerEvent, DisjointPath, PathEndedEvent, DialPeerEvent } from '../index.js'; import type { PeerId, PeerInfo } from '@libp2p/interface'; import type { Libp2pRecord } from '@libp2p/record'; import type { ProgressOptions } from 'progress-events'; export interface QueryEventFields { to: PeerId; type: MessageType; path: DisjointPath; } export declare function sendQueryEvent(fields: QueryEventFields, options?: ProgressOptions): SendQueryEvent; export interface PeerResponseEventFields { from: PeerId; messageType: MessageType; path: DisjointPath; closer?: PeerInfo[]; providers?: PeerInfo[]; record?: Libp2pRecord; } export declare function peerResponseEvent(fields: PeerResponseEventFields, options?: ProgressOptions): PeerResponseEvent; export interface FinalPeerEventFields { from: PeerId; peer: PeerInfo; path: DisjointPath; } export declare function finalPeerEvent(fields: FinalPeerEventFields, options?: ProgressOptions): FinalPeerEvent; export interface ErrorEventFields { from: PeerId; error: Error; path: DisjointPath; } export declare function queryErrorEvent(fields: ErrorEventFields, options?: ProgressOptions): QueryErrorEvent; export interface ProviderEventFields { from: PeerId; providers: PeerInfo[]; path: DisjointPath; } export declare function providerEvent(fields: ProviderEventFields, options?: ProgressOptions): ProviderEvent; export interface ValueEventFields { from: PeerId; value: Uint8Array; path: DisjointPath; } export declare function valueEvent(fields: ValueEventFields, options?: ProgressOptions): ValueEvent; export interface AddPeerEventFields { peer: PeerId; path: DisjointPath; } export declare function addPeerEvent(fields: AddPeerEventFields, options?: ProgressOptions): AddPeerEvent; export interface DialPeerEventFields { peer: PeerId; path: DisjointPath; } export declare function dialPeerEvent(fields: DialPeerEventFields, options?: ProgressOptions): DialPeerEvent; export interface PathEndedEventFields { path: DisjointPath; } export declare function pathEndedEvent(fields: PathEndedEventFields, options?: ProgressOptions): PathEndedEvent; //# sourceMappingURL=events.d.ts.map