import { WebSocketMessageCallback, WebSocketService } from '../interfaces/websocket';
import { ClientOption } from '../../model/client_option';
import { DomainType } from '../../model/constant';
/**
 * DefaultWsService implements the WebSocket service interface for handling real-time data communication.
 * It manages WebSocket connections, subscriptions, and message handling with automatic reconnection support.
 */
export declare class DefaultWsService implements WebSocketService {
    private readonly wsOption;
    private readonly privateChannel;
    private readonly tokenTransport;
    private topicManager;
    private client;
    private readonly eventEmitter;
    constructor(option: ClientOption, domain: DomainType, privateChannel: boolean, versionString: string);
    start(): Promise<void>;
    stop(): Promise<void>;
    subscribe(prefix: string, args: string[], callback: WebSocketMessageCallback): Promise<string>;
    unsubscribe(id: string): Promise<void>;
    private processMessages;
    private recovery;
}
