import type { InputSource } from "../../tui/input/types.js"; import type { OutputTarget } from "../../tui/output/types.js"; /** Opens the user's editor on a row's text; null when `$EDITOR` is unset. */ export type OpenEditor = ((text: string) => string | null) | null; /** Where the form draws and reads keys, and how it opens an editor. */ export type FormTerminal = { input: InputSource; output: OutputTarget; size: { width: number; height: number; }; openEditor: OpenEditor; }; /** The real terminal; `command` names the caller in the refusal. */ export declare function openRealTerminal(command: string): FormTerminal;