UNPKG

@achingbrain/nat-port-mapper

Version:
18 lines 828 B
import { InternetGatewayService } from './internet-gateway-service.js'; import type { MapPortOptions } from '../index.js'; import type { RefreshableMapping } from './internet-gateway-service.js'; import type { AbortOptions } from 'abort-error'; interface IPv4Mapping extends RefreshableMapping { remoteHost: string; externalPort: string; internalClient: string; protocol: 'TCP' | 'UDP'; description: string; } export declare class InternetGatewayService4 extends InternetGatewayService<IPv4Mapping> { mapPort(localPort: number, localHost: string, options?: MapPortOptions): Promise<number>; refreshPort(localPort: number, options?: AbortOptions): Promise<void>; unmap(localPort: number, options?: AbortOptions): Promise<void>; } export {}; //# sourceMappingURL=internet-gateway-service-4.d.ts.map