import { TerminalDuplex, TerminalExit, TerminalSize } from "./index.js"; import { n as GhosttyAsset, t as GHOSTTY_ASSET_PATHS } from "./ghostty-assets-BTTeteW3.js"; //#region src/node.d.ts export type DisposableLike = { dispose(): void; }; export type PtyProcessLike = { onData(listener: (data: string) => void): DisposableLike; onExit(listener: (event: { exitCode: number; signal?: number; }) => void): DisposableLike; write(data: string): void; resize(columns: number, rows: number): void; kill(signal?: string): void; }; export type PtySpawnOptions = { name: string; columns: number; rows: number; cwd: string; env: Record; }; export type PtyDriver = { spawn(command: string, args: string[], options: PtySpawnOptions): PtyProcessLike; }; export type SpawnLocalPtyOptions = { command: string; args?: string[]; cwd: string; env?: Record; name?: string; size?: TerminalSize; driver?: PtyDriver; signal?: AbortSignal; onOutput?: (bytes: Uint8Array) => void; outputBufferBytes?: number; onOutputDrop?: (droppedBytes: number) => void; }; export type LocalPtySession = TerminalDuplex & { readonly exit: Promise; kill(signal?: string): void; }; export type AttachLocalStdioOptions = { stdin?: NodeJS.ReadStream; stdout?: NodeJS.WriteStream; signal?: AbortSignal; onResize?: (size: TerminalSize) => void; }; export declare function loadNodePtyDriver(): Promise; export declare function spawnLocalPty(options: SpawnLocalPtyOptions): Promise; export declare function attachLocalStdio(terminal: TerminalDuplex, options?: AttachLocalStdioOptions): Promise; export declare function ensureNodePtySpawnHelperExecutable(): Promise; export declare function readGhosttyAsset(pathname: string): Promise; //#endregion export { GHOSTTY_ASSET_PATHS, type GhosttyAsset };