/** * VirtualTerminal — interactive terminal bound to a PTY session. * * Engine-agnostic: xterm (default) or restty (libghostty-vt). Session I/O * goes through AvocadoProvider / TerminalBackend. */ import { type JSX } from 'react'; import type { TerminalEngineId } from './views/types.js'; import 'xterm/css/xterm.css'; export interface VirtualTerminalProps { sessionId: string; terminalId: string; cols?: number; rows?: number; isActive?: boolean; autoResize?: boolean; onResize?: (cols: number, rows: number) => void; onInput?: (data: string) => void; onFocus?: () => void; onBlur?: () => void; className?: string; fontSize?: number; fontFamily?: string; convertEol?: boolean; suppressTerminalResponses?: boolean; /** * Rendering engine. * - `xterm` (default): classic xterm.js * - `restty`: Ghostty VT via restty (optional peer dep) */ engine?: TerminalEngineId; /** Restty only: Ghostty builtin theme name (default Ghostty Default Style Dark). */ ghosttyThemeName?: string; resttyRenderer?: 'auto' | 'webgpu' | 'webgl2'; resttyLigatures?: boolean; resttyFontHinting?: boolean; resttyAlphaBlending?: 'native' | 'linear' | 'linear-corrected'; resttyNerdIconScale?: number; } export declare function VirtualTerminal({ sessionId, terminalId, cols, rows, isActive, autoResize, onResize, onInput, onFocus, onBlur, className, fontSize, fontFamily, convertEol, suppressTerminalResponses, engine, ghosttyThemeName, resttyRenderer, resttyLigatures, resttyFontHinting, resttyAlphaBlending, resttyNerdIconScale, }: VirtualTerminalProps): JSX.Element; export default VirtualTerminal; export type { TerminalEngineId }; //# sourceMappingURL=VirtualTerminal.d.ts.map