UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

15 lines • 776 B
import { Container } from "@earendil-works/pi-tui"; export declare class ShortcutOverlay extends Container { constructor(); } export declare function shouldShowShortcutOverlay(prevText: string, nextText: string, inputKind: "typed" | "paste" | "other"): boolean; /** * Classify an editor change as paste or typed. * * The TUI editor exposes no per-change paste flag, so a clipboard paste is * signalled out-of-band by `pasteSignalled` (set on the paste entry point). * A multi-character jump is treated as a paste too, which catches bracketed * pastes that never reach the clipboard handler. */ export declare function classifyEditorInput(prevText: string, nextText: string, pasteSignalled: boolean): "typed" | "paste"; //# sourceMappingURL=shortcut-overlay.d.ts.map