import type { TUI } from "@earendil-works/pi-tui"; export interface ExternalEditorHost { stop(): void; start(): void; requestRender(force?: boolean): void; } export interface ExternalEditorOptions { editorCommand?: string; showWarning?: (message: string) => void; } export interface ClipboardImageEditorOptions { showWarning?: (message: string) => void; cleanupDelayMs?: number; /** Bash mode shell-quotes pasted file paths and separates them as arguments. */ isBashMode?: boolean; } export declare function cleanupStaleClipboardFiles(now?: number): void; export declare function combineQueuedMessagesForEditor(queuedMessages: readonly string[], currentText: string): string; /** Quote a shell argument unless it only contains characters that need no quoting. */ export declare function quoteIfNeeded(value: string): string; export interface ClipboardImageEditorTarget { insertTextAtCursor?: (text: string) => void; getText?: () => string; setText?: (text: string) => void; getCursor?: () => { line: number; col: number; }; } /** * Paste from the clipboard: copied files by their original paths (macOS), images via temporary * files, and plain text as the final fallback. */ export declare function pasteClipboardImageToEditor(editor: ClipboardImageEditorTarget, requestRender?: () => void, options?: ClipboardImageEditorOptions): Promise; export declare function openExternalEditorForText(text: string, host: Pick | ExternalEditorHost, options?: ExternalEditorOptions): Promise; //# sourceMappingURL=chat-input-actions.d.ts.map