export interface ExternalEditorOptions { command: string; content: string; } export type ExternalEditorResult = { status: "complete"; content: string; } | { status: "failed"; }; /** * Split an editor command into executable + arguments, honouring quotes. * * A plain `command.split(" ")` breaks every Windows editor installed under a path * with a space — `C:\Program Files\Microsoft VS Code\Code.exe --wait` launched * `C:\Program` and failed silently. Quoting the executable is the portable way to * express that, so both `"C:\Program Files\...\Code.exe" --wait` and * `'/usr/bin/my editor' -w` now work, and `\"` escapes a literal quote. */ export declare function parseEditorCommand(command: string): string[]; export declare function editInExternalEditor(options: ExternalEditorOptions): Promise; //# sourceMappingURL=external-editor.d.ts.map