import { PureComponent } from 'react';
declare class LPTerminal extends PureComponent<propTypes, any> {
    static defaultProps: {
        visible: boolean;
        addons: [];
    };
    xterm: any;
    container: any;
    options: any;
    focused: boolean;
    constructor(props: any, context: any);
    componentDidMount(): void;
    componentWillUnmount(): void;
    applyAddon: (addon: any) => void;
    decodeUTF8: (str: any) => string;
    encodeUTF8: (str: any) => string;
    getTerminal: () => any;
    writeUTF8: (data: any) => void;
    write: (data: any) => void;
    writeln: (data: any) => void;
    focus: () => void;
    fit: () => void;
    focusChanged: (focused: any) => void;
    onResize: (data: any) => void;
    onKeypress: (key: any, ev: any) => void;
    onInput: (data: any) => void;
    resize: (cols: any, rows: any) => void;
    setOption: (key: any, value: any) => void;
    refresh: () => void;
    render(): JSX.Element;
}
interface propTypes {
    /** 添加相关插件 */
    addons?: any[];
    /** 完成一次键盘按键时触发 */
    onKeypress?: (key: any, ev: {
        altKey: any;
        ctrlKey: any;
        metaKey: any;
        keyCode: number;
    }) => void;
    /** 当终端写入内容时触发 */
    onInput?: (data: any) => void;
    /** 当焦点变化时触发 */
    onFocusChange?: (focused: boolean) => void;
    /** 当屏幕变化时触发 */
    onResize?: (data: any) => void;
    /** 自定义内联样式 */
    style?: object;
    /** 自定义类名 */
    className?: string;
    visible?: boolean;
}
export default LPTerminal;
