import type { TerminalCompositor } from '../../terminal-compositor.js'; export type EditorNotifyKind = 'info' | 'warn' | 'error'; export type EditorSpawnOutcome = 'no-tty' | 'no-editor' | 'clean' | 'nonzero' | 'spawn-failed'; export interface EditorSpawnResult { outcome: EditorSpawnOutcome; exitCode: number | null; } export interface EditorSpawnDeps { compositor: TerminalCompositor | null; filePath: string; notify: (kind: EditorNotifyKind, message: string) => void; suspendFooter?: () => void; resumeFooter?: () => void; } export declare function resolveEditor(): { cmd: string; args: string[]; } | null; export declare function spawnEditorOnPath(deps: EditorSpawnDeps): Promise;