import WebSocket from 'isomorphic-ws';
import stream from 'node:stream';
import { KubeConfig } from './config.js';
import { WebSocketInterface } from './web-socket-handler.js';
export declare class PortForward {
    private readonly handler;
    private readonly disconnectOnErr;
    constructor(config: KubeConfig, disconnectOnErr?: boolean, handler?: WebSocketInterface);
    portForward(namespace: string, podName: string, targetPorts: number[], output: stream.Writable, err: stream.Writable | null, input: stream.Readable, retryCount?: number): Promise<WebSocket.WebSocket | (() => WebSocket.WebSocket | null)>;
}
