export type ParsedShortcut = { /** The key, lowercased, with aliases resolved (`"esc"` is `"escape"`). */ key: string; /** Command on Apple platforms, Control elsewhere. */ mod: boolean; meta: boolean; ctrl: boolean; alt: boolean; shift: boolean; }; export type ShortcutPlatformOptions = { /** * Format or match for an Apple platform, where `mod` is Command. * Detected from `navigator` when unset. */ apple?: boolean; }; /** * Whether the browser runs on an Apple platform. `false` on the server, * including Node and Bun. */ export function isApplePlatform(): boolean; /** * Build a script that marks `` with the platform before first paint * (`data-ccs-platform="apple"` or `"other"`), so every `Kbd` shows that * platform's keys from the first paint. Returns the script body without * `