UNPKG

vuestic-ui

Version:
12 lines (11 loc) 427 B
import { Ref, ShallowRef } from 'vue'; type MaybeRef<T> = Ref<T> | T; interface LongPressOptions { onStart: (ev: KeyboardEvent) => void; onEnd: (ev: KeyboardEvent) => void; onUpdate: (ev: KeyboardEvent | FocusEvent) => void; delay?: MaybeRef<number>; interval?: number; } export declare function useLongPressKey(el: ShallowRef<HTMLElement | undefined>, options: Partial<LongPressOptions>): void; export {};