import { IPacket, IListener, ISpecification } from '../api';
/**
 * @inheritDoc
 *
 * Off switch listener implementation.
 *
 * The textbox and the invoker will be disabled when
 * the incoming message doesn't contain a NER strategy.
 */
export declare class OffSwitchListener implements IListener {
    private readonly txt;
    private readonly btn;
    constructor(txt?: HTMLTextAreaElement, btn?: HTMLButtonElement);
    /**
     * @inheritDoc
     */
    onConnected(): void;
    /**
     * @inheritDoc
     */
    onConnectionLost(): void;
    /**
     * @inheritDoc
     */
    onDisconnected(): void;
    /**
     * @inheritDoc
     */
    onError(error: string): void;
    /**
     * @inheritDoc
     */
    onPacketSend(packet: IPacket): void;
    /**
     * @inheritDoc
     */
    onMessage(data: ISpecification): void;
    /**
     * Sets the disabled flag and adds the CSS class
     * lto-off to the invoker and textbox, if there is no
     * NER strategy passed
     *
     * @param nerStrategies the NER strategy which
     * is used in the current message
     */
    switchOff(nerStrategies?: Map<string, any>): void;
}
