import { IPacket, IListener } from '../api';
/**
 * @inheritDoc
 *
 * Default IListener implementation.
 */
export declare class DefaultListener implements IListener {
    private emitter;
    constructor(emitter: IListener | null);
    /**
     * @inheritDoc
     */
    onConnected(): void;
    /**
     * @inheritDoc
     */
    onConnectionLost(): void;
    /**
     * @inheritDoc
     */
    onDisconnected(): void;
    /**
     * @inheritDoc
     */
    onError(error: string): void;
    /**
     * @inheritDoc
     */
    onMessage(data: any): void;
    /**
     * @inheritDoc
     */
    onPacketSend(packet: IPacket): void;
}
