import Tunnel from './Tunnel'; import { TunnelOptions } from './types'; interface LegacyCallback { (err: Error | null, tunnel?: Tunnel): void; } declare function localtunnel(port: number, options?: Omit, callback?: LegacyCallback): Promise; declare function localtunnel(options: TunnelOptions, callback?: LegacyCallback): Promise; export = localtunnel;