import { PlatformType, ParsedKeyCombo, PlatformKeys } from './types'; /** * Detect the current platform */ export declare function detectPlatform(): PlatformType; /** * Detect if the device is mobile (phone or tablet) */ export declare function isMobileDevice(): boolean; /** * Check if device is a tablet (larger touch device) */ export declare function isTabletDevice(): boolean; /** * Check if keyboard shortcuts should be enabled * Disabled on mobile phones, optionally enabled on tablets */ export declare function shouldEnableKeyboardShortcuts(options?: { enableOnTablet?: boolean; }): boolean; /** * Check if current platform is Mac */ export declare function isMac(): boolean; /** * Normalize key name (lowercase, handle aliases) */ export declare function normalizeKey(key: string): string; /** * Parse key combination string (e.g., 'ctrl+shift+k') */ export declare function parseKeyCombo(combo: string): ParsedKeyCombo; /** * Check if a keyboard event matches a key combination */ export declare function matchesKeyCombo(event: KeyboardEvent, combo: string): boolean; /** * Format key combination for display */ export declare function formatKeyCombo(combo: string): string; /** * Convert platform-specific combo to cross-platform * Example: 'cmd+k' becomes 'ctrl+k' on Windows/Linux */ export declare function normalizePlatformCombo(combo: string): string; /** * Check if element should ignore keyboard shortcuts * (e.g., input fields, textareas, content-editable) */ export declare function shouldIgnoreShortcut(event: KeyboardEvent): boolean; /** * Get readable shortcut label */ export declare function getShortcutLabel(keys: string[]): string; /** * Resolve platform-specific keys and format for display */ export declare function getDisplayKeysForPlatform(keys: string[] | PlatformKeys): string; /** * Check if a key definition is a sequence (contains spaces, no +) */ export declare function isKeySequence(keyDef: string): boolean; /** * Format a key sequence for display * "g h" -> "G then H" */ export declare function formatKeySequence(keyDef: string): string; /** * Format any shortcut (combo or sequence) for display */ export declare function formatShortcut(keyDef: string): string; //# sourceMappingURL=utils.d.ts.map