import { MaybeRef } from 'vue'; import { Nullable } from '../types/utils.js'; import { KeyboardKey, ShortcutStep } from '../utils/keyboard.js'; type UseShortcutOptions = { /** * Sequence of shortcut steps. * * @example `[{ all: ["Control", "C"] }, { any: ["V", "Insert"] }]` */ sequence: MaybeRef; /** * Element for listening to keyboard events. * * @default Global window object */ element?: MaybeRef>; /** * Delay in milliseconds before cleaning up the pressed keys after inactivity. * * @default 5000 */ cleanupDelay?: MaybeRef; /** * Whether the shortcut handling is disabled. */ disabled?: MaybeRef; /** * Callback invoked when the full shortcut sequence is completed. */ onComplete?: () => void; /** * Callback invoked when a single step of the shortcut sequence is completed. */ onStepComplete?: (step: ShortcutStep, stepIndex: number) => void; }; /** * Composable for managing a keyboard shortcut that can consist of one or multiple steps. * If you want to also visualize the shortcut, use the `OnyxShortcut` component instead. * * @experimental * @deprecated This API is unstable and might change in patch releases. */ export declare const _unstableUseShortcut: (options: UseShortcutOptions) => { isKeyHighlighted: import('vue').ComputedRef<(key: KeyboardKey, stepIndex: number) => boolean>; currentStepIndex: import('vue').Ref; pressedKeys: import('vue').Ref & Omit, keyof Set>, Set | (Set & Omit, keyof Set>)>; }; export {};