UNPKG

ink

Version:
23 lines (22 loc) 588 B
import { Buffer } from 'node:buffer'; export declare const nonAlphanumericKeys: string[]; type ParsedKey = { name: string; ctrl: boolean; meta: boolean; shift: boolean; option: boolean; sequence: string; raw: string | undefined; code?: string; super?: boolean; hyper?: boolean; capsLock?: boolean; numLock?: boolean; eventType?: 'press' | 'repeat' | 'release'; isKittyProtocol?: boolean; text?: string; isPrintable?: boolean; }; declare const parseKeypress: (s?: Buffer | string) => ParsedKey; export default parseKeypress;