import type { TunnelClient } from 'localtunnels'; export declare function localTunnel(options?: TunnelOptions | { port: number }): Promise; export declare interface TunnelOptions { port: number server?: string subdomain?: string verbose?: boolean timeout?: number maxReconnectAttempts?: number onConnect?: (info: { url: string, subdomain: string }) => void onRequest?: (req: { method: string, url: string }) => void onResponse?: (res: { status: number, size: number, duration?: number }) => void onError?: (error: Error) => void onReconnecting?: (info: { attempt: number, delay: number }) => void } export declare interface LocalTunnel { url: string subdomain: string client: TunnelClient close: () => Promise }