import { serviceCapabilities, serviceDependencies } from '@libp2p/interface'; import type { UPnPNATComponents, UPnPNATInit, UPnPNAT as UPnPNATInterface } from './index.ts'; import type { Gateway, UPnPNAT as UPnPNATClient } from '@achingbrain/nat-port-mapper'; import type { Startable } from '@libp2p/interface'; import type { TypedEventTarget } from 'main-event'; export interface GatewayFinderEvents { gateway: CustomEvent; } export interface GatewayFinder extends TypedEventTarget { } export declare class UPnPNAT implements Startable, UPnPNATInterface { private readonly log; private readonly components; private readonly init; private started; portMappingClient: UPnPNATClient; private shutdownController?; private readonly mapIpAddressesDebounced; private readonly gatewayFinder; private readonly portMappers; private readonly autoConfirmAddress; constructor(components: UPnPNATComponents, init: UPnPNATInit); readonly [Symbol.toStringTag] = "@libp2p/upnp-nat"; readonly [serviceCapabilities]: string[]; get [serviceDependencies](): string[]; isStarted(): boolean; start(): Promise; /** * Stops the NAT manager */ stop(): Promise; onGatewayDiscovered(event: CustomEvent): void; mapIpAddresses(): Promise; } //# sourceMappingURL=upnp-nat.d.ts.map