starchild-widget
Version:
Starchild Widget
14 lines • 505 B
TypeScript
interface KeyboardShortcutOptions {
key: string;
metaKey?: boolean;
ctrlKey?: boolean;
shiftKey?: boolean;
altKey?: boolean;
callback: () => void;
preventDefault?: boolean;
}
export declare const useKeyboardShortcuts: (shortcuts: KeyboardShortcutOptions[]) => void;
export declare const useSearchToggleShortcut: (onToggle: () => void) => void;
export declare const useVoiceShortcut: (onTrigger: () => void) => void;
export {};
//# sourceMappingURL=useKeyboardShortcuts.d.ts.map