index.d.ts 1.1 KB

12345678910111213141516171819202122232425
  1. import { click, dblClick } from './click';
  2. import { type } from './type';
  3. import { clear } from './clear';
  4. import { tab } from './tab';
  5. import { hover, unhover } from './hover';
  6. import { upload } from './upload';
  7. import { paste } from './paste';
  8. import { keyboard, specialCharMap } from './keyboard';
  9. declare const userEvent: {
  10. click: typeof click;
  11. dblClick: typeof dblClick;
  12. type: typeof type;
  13. clear: typeof clear;
  14. tab: typeof tab;
  15. hover: typeof hover;
  16. unhover: typeof unhover;
  17. upload: typeof upload;
  18. selectOptions: (args_0: Element, args_1: string | string[] | HTMLElement | HTMLElement[], args_2?: MouseEventInit | undefined, args_3?: import("./utils").PointerOptions | undefined) => void;
  19. deselectOptions: (args_0: Element, args_1: string | string[] | HTMLElement | HTMLElement[], args_2?: MouseEventInit | undefined, args_3?: import("./utils").PointerOptions | undefined) => void;
  20. paste: typeof paste;
  21. keyboard: typeof keyboard;
  22. };
  23. export default userEvent;
  24. export { specialCharMap as specialChars };
  25. export type { keyboardKey } from './keyboard';