the-forest/client/node_modules/@testing-library/user-event/dist/keyboard/index.d.ts

19 lines
722 B
TypeScript
Raw Normal View History

2024-09-17 20:35:18 -04:00
import { keyboardState, keyboardOptions, keyboardKey } from './types';
export { specialCharMap } from './specialCharMap';
export type { keyboardOptions, keyboardKey };
export declare function keyboard(text: string, options?: Partial<keyboardOptions & {
keyboardState: keyboardState;
delay: 0;
}>): keyboardState;
export declare function keyboard(text: string, options: Partial<keyboardOptions & {
keyboardState: keyboardState;
delay: number;
}>): Promise<keyboardState>;
export declare function keyboardImplementationWrapper(text: string, config?: Partial<keyboardOptions & {
keyboardState: keyboardState;
}>): {
promise: Promise<void>;
state: keyboardState;
releaseAllKeys: () => void;
};