react-bootstrap-typeahead
Version:
React typeahead with Bootstrap styling
30 lines (29 loc) • 1.51 kB
TypeScript
import { axe } from 'jest-axe';
import React, { ReactNode } from 'react';
import renderer from 'react-test-renderer';
import { Meta } from '@storybook/react';
import { TypeaheadContextType } from '../core/Context';
export { axe };
export * from '@storybook/testing-react';
export * from '@testing-library/react';
export { default as userEvent } from '@testing-library/user-event';
export declare function noop(): void;
export declare function prepareSnapshot(element: React.ReactElement): renderer.ReactTestRendererJSON | renderer.ReactTestRendererJSON[] | null;
interface StoriesImport {
default: Meta;
}
export declare function generateSnapshots(stories: StoriesImport): void;
interface HintProviderProps extends Partial<TypeaheadContextType> {
children?: ReactNode;
}
export declare const HintProvider: ({ children, ...context }: HintProviderProps) => JSX.Element;
export declare function getHint(container: HTMLElement): Element;
export declare function findInput(multiple?: boolean): Promise<HTMLElement>;
export declare function getInput(): HTMLInputElement | null;
export declare function findItems(): Promise<HTMLElement[]>;
export declare function getItems(): HTMLElement[];
export declare function findMenu(): Promise<HTMLElement>;
export declare function getMenu(): HTMLElement | null;
export declare function findPaginator(): Promise<HTMLElement>;
export declare function getTokens(container: HTMLElement): HTMLCollectionOf<Element>;
export declare function waitForOverlay(): Promise<void>;