import { IBehaviour, IRenderer } from '../api'; import { MqttConnection } from '../connection/MqttConnection'; /** * IBehaviour implementation which listens for a keyup event with code 13 in order to publish * a text message to the outgoing text channel. */ export declare class KeyboardBehaviour implements IBehaviour { private readonly target; private readonly renderer; private readonly callback; constructor(renderer: IRenderer, target?: HTMLTextAreaElement, callback?: () => void); /** * Adds an event listener to the textbox. * When the textbox is focused, the user * is able to publish a message by pressing * enter. * * @inheritDoc */ bind(gateway: MqttConnection): void; }