import { EventEmitter } from 'events';
import { DebugProtocol } from '@vscode/debugprotocol';
export declare class MinimalDapClient extends EventEmitter {
    private socket;
    private buffer;
    private seq;
    private pendingRequests;
    private host;
    private port;
    private isDisconnectingOrDisconnected;
    constructor(host: string, port: number);
    connect(): Promise<void>;
    private handleData;
    sendRequest<T extends DebugProtocol.Response>(command: string, args?: any): Promise<T>;
    disconnect(): void;
    /**
     * Shutdown the DAP client, rejecting all pending requests and disposing resources.
     * This method is idempotent.
     */
    shutdown(reason?: string): void;
}
