export interface ExternalEditorRequest { command: string; content: string; } export type ExternalEditorResult = { status: "complete"; content: string; } | { status: "failed"; }; /** * Quote one argument for `cmd.exe`. * * Node does not quote arguments when `shell: true`, so any value holding a * space would otherwise be split into several arguments by the shell. * Backslashes are only special when they precede a quote, so double just * those runs (plus a trailing run, which would escape the closing quote), * escape embedded quotes, then wrap the result. */ export declare function quoteWindowsShellArgument(value: string): string; export declare function resolveExternalEditorCommand(configuredCommand?: string, environment?: Readonly>, platform?: NodeJS.Platform): string; export declare function editInExternalEditor(request: ExternalEditorRequest): Promise; //# sourceMappingURL=external-editor.d.ts.map