/** * Pure heuristics for the bracketed-paste handler in app.tsx, split out so they * can be unit-tested without pulling in Ink/React. */ /** * Does a bracketed-paste buffer look like a terminal's stand-in for an image * paste rather than genuine pasted text? * * Cmd+V on a clipboard image yields an *empty* buffer on macOS Terminal/iTerm2, * but several Linux terminals instead emit a filename, a `file://` URI, or the * raw image header alongside the paste. Those shapes — and only those — warrant * the (async, 30-100 ms) clipboard probe in app.tsx. Substantial text returns * `false` so it can be inserted synchronously, keeping the common paste path * instant instead of waiting on an osascript / xclip / wl-paste shell-out. * * False positives are harmless: a literal text paste of "photo.png" probes the * clipboard, finds no image, and falls through to the text path anyway. */ export declare function looksLikeImagePasteStub(buffered: string): boolean;