/**
 * Copyright 2023 Kapeta Inc.
 * SPDX-License-Identifier: MIT
 */
import React from 'react';
import { ITerminalOptions, ITerminalInitOnlyOptions } from 'xterm';
import 'xterm/css/xterm.css';
export interface XTermStream {
    write(data: string): void;
    on(cb: (line: string) => void): () => void;
}
interface Props {
    terminalOptions?: ITerminalOptions & ITerminalInitOnlyOptions;
    lines?: string[];
    stream?: XTermStream;
    onData?: (data: string) => void;
}
export declare const escapeSequence: (str: string) => string;
export declare const XTerm: (props: Props) => React.JSX.Element;
export {};
