UNPKG

ant-design-x-vue-next

Version:

Ant Design X for Vue — community continuation aligned with @ant-design/x

12 lines (11 loc) 567 B
import { type Ref } from 'vue'; import { type ShortcutKeyActionType, type ShortcutKeyInfoType, type ShortcutKeys } from '../shortcut-keys'; type Observer = (action: ShortcutKeyActionType) => void; /** * Document-level shortcut listener aligned with `@ant-design/x` useShortcutKeys. */ declare function useShortcutKeys(component: 'conversations', shortcutKeys: Ref<Record<string, ShortcutKeys | ShortcutKeys[]> | undefined>): { shortcutKeysInfo: Ref<Record<string, ShortcutKeyInfoType>>; subscribe: (fn: Observer) => void; }; export default useShortcutKeys;