zhangyong
2023-08-22 1353e87cb21a4032d585d7404bae9042f2ebcf08
1
2
3
4
5
6
7
8
import type { HTMLAttributes } from 'vue';
declare type Orientation = HTMLAttributes['aria-orientation'];
declare type Direction = 'ltr' | 'rtl';
declare type FocusIntent = 'first' | 'last' | 'prev' | 'next';
export declare const getFocusIntent: (event: KeyboardEvent, orientation?: Orientation, dir?: Direction | undefined) => FocusIntent | undefined;
export declare const reorderArray: <T>(array: T[], atIdx: number) => T[];
export declare const focusFirst: (elements: HTMLElement[]) => void;
export {};