import type { TerminalCompositor } from '../../terminal-compositor.js'; import { resolveEditor, type EditorNotifyKind } from './editor-spawn.js'; export { resolveEditor }; export type { EditorNotifyKind }; export interface EditorHandoffDeps { compositor: TerminalCompositor | null; notify: (kind: EditorNotifyKind, message: string) => void; suspendFooter?: () => void; resumeFooter?: () => void; } export type EditorHandoffResult = 'no-tty' | 'no-editor' | 'loaded' | 'kept' | 'spawn-failed'; export declare function openEditorForBuffer(deps: EditorHandoffDeps): Promise;