/** * Cross-platform modifier-key helpers. Windows/Linux muscle memory uses * Ctrl+; on macOS the same action maps to Cmd+. Terminals deliver * Cmd as the `super` flag (kitty CSI-u / xterm modifyOtherKeys — see * src/ink/parse-keypress.ts); Ctrl keeps working everywhere, so `isMod` * accepts either on the mac and stays Ctrl-only elsewhere. */ export declare const isMac: boolean; /** True when the key event carries the platform's "primary" modifier. */ export declare function isMod(key: { ctrl?: boolean; super?: boolean; }): boolean; /** * Display prefix for shortcut labels: "⌘" on macOS (Apple style, no "+"), * "ctrl+" everywhere else. Pair with the bare key, e.g. `${modLabel}o`. */ export declare const modLabel: string; /** * Modal-confirm guard. Since #110 the input pipeline can deliver Enter WITH * modifiers: Option+Enter arrives as meta+return (ESC CR), and on * extended-keys terminals (kitty CSI-u / modifyOtherKeys) Shift/Ctrl+Enter * arrive as return+modifier. A bare `key.return` in a decision dialog would * let those commit by accident — approving a permission escalation or * confirming an irreversible session delete when the user only wanted a * newline. Only a modifier-free Enter may commit a modal. */ export declare function isPlainReturn(key: { return?: boolean; ctrl?: boolean; meta?: boolean; shift?: boolean; super?: boolean; }): boolean; /** * Modal Enter recognition across parsed key events and Windows ConPTY's raw * CR/LF fallback. PromptInput already handled both forms; shared modal * pickers must do the same or their UI can render while Enter appears inert. */ export declare function isPlainReturnInput(input: string, key: Parameters[0] & { isPasted?: boolean; }): boolean; //# sourceMappingURL=modifiers.d.ts.map