1 | import { axe } from 'jest-axe';
|
2 | import React, { ReactNode } from 'react';
|
3 | import renderer from 'react-test-renderer';
|
4 | import { Meta } from '@storybook/react';
|
5 | import { TypeaheadContextType } from '../core/Context';
|
6 | export { axe };
|
7 | export * from '@storybook/testing-react';
|
8 | export * from '@testing-library/react';
|
9 | export { default as userEvent } from '@testing-library/user-event';
|
10 | export declare function noop(): void;
|
11 | export declare function prepareSnapshot(element: React.ReactElement): renderer.ReactTestRendererJSON | renderer.ReactTestRendererJSON[] | null;
|
12 | interface StoriesImport {
|
13 | default: Meta;
|
14 | }
|
15 | export declare function generateSnapshots(stories: StoriesImport): void;
|
16 | interface HintProviderProps extends Partial<TypeaheadContextType> {
|
17 | children?: ReactNode;
|
18 | }
|
19 | export declare const HintProvider: ({ children, ...context }: HintProviderProps) => JSX.Element;
|
20 | export declare function getHint(container: HTMLElement): Element;
|
21 | export declare function findInput(multiple?: boolean): Promise<HTMLElement>;
|
22 | export declare function getInput(): HTMLInputElement | null;
|
23 | export declare function findItems(): Promise<HTMLElement[]>;
|
24 | export declare function getItems(): HTMLElement[];
|
25 | export declare function findMenu(): Promise<HTMLElement>;
|
26 | export declare function getMenu(): HTMLElement | null;
|
27 | export declare function findPaginator(): Promise<HTMLElement>;
|
28 | export declare function getTokens(container: HTMLElement): HTMLCollectionOf<Element>;
|
29 | export declare function waitForOverlay(): Promise<void>;
|