import { EventEmitter } from 'events';
export declare class EmacsBridge extends EventEmitter {
    private wss?;
    private clients;
    private sessionId?;
    private pendingRequests;
    private requestId;
    private log;
    private onNotification?;
    constructor(logger?: (message: string) => void);
    start(port?: number, sessionId?: string): Promise<number>;
    stop(): Promise<void>;
    private handleMessage;
    private sendResponse;
    request(method: string, params?: any): Promise<any>;
    isConnected(): boolean;
    sendRequest(method: string, params?: any): Promise<any>;
    private handleNotification;
    setNotificationHandler(handler: (method: string, params: any) => void): void;
}
//# sourceMappingURL=emacs-bridge.d.ts.map