import { queries as defaultQueries, RenderResult } from "@testing-library/react"; import * as React from "react"; declare const queries: { findAllByClassName: import("@testing-library/react").FindAllBy<[value: string]>; findAllById: import("@testing-library/react").FindAllBy<[value: string]>; findAllBySelector: import("@testing-library/react").FindAllBy<[value: string]>; findByClassName: import("@testing-library/react").FindBy<[value: string]>; findById: import("@testing-library/react").FindBy<[value: string]>; findBySelector: import("@testing-library/react").FindBy<[value: string]>; getAllByClassName: import("@testing-library/react").GetAllBy<[value: string]>; getAllById: import("@testing-library/react").GetAllBy<[value: string]>; getAllBySelector: import("@testing-library/react").GetAllBy<[value: string]>; getByClassName: import("@testing-library/react").GetBy<[value: string]>; getById: import("@testing-library/react").GetBy<[value: string]>; getBySelector: import("@testing-library/react").GetBy<[value: string]>; queryAllByClassName: (container: HTMLElement, id: string) => HTMLElement[]; queryAllById: (container: HTMLElement, id: string) => HTMLElement[]; queryAllBySelector: (container: HTMLElement, id: string) => HTMLElement[]; queryByClassName: import("@testing-library/react").QueryBy<[value: string]>; queryById: import("@testing-library/react").QueryBy<[value: string]>; queryBySelector: import("@testing-library/react").QueryBy<[value: string]>; getByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; getAllByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; queryByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; queryAllByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; findByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByLabelText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; getAllByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryAllByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; findByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByPlaceholderText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; getAllByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; queryByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; queryAllByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined): ReturnType>; findByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").SelectorMatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; getAllByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryAllByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; findByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByAltText(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; getAllByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryAllByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; findByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByTitle(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; getAllByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryAllByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; findByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByDisplayValue(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined): ReturnType>; getAllByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined): ReturnType>; queryByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined): ReturnType>; queryAllByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined): ReturnType>; findByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByRole(container: HTMLElement, role: import("@testing-library/react").ByRoleMatcher, options?: defaultQueries.ByRoleOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; getByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; getAllByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; queryAllByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined): ReturnType>; findByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; findAllByTestId(container: HTMLElement, id: import("@testing-library/react").Matcher, options?: import("@testing-library/react").MatcherOptions | undefined, waitForElementOptions?: import("@testing-library/react").waitForOptions | undefined): ReturnType>; }; export type TRenderResult

= RenderResult & { updateProps: (newProps: Partial

) => void; }; /** * A class to provide a simple interface for setting up your React component unit tests */ export declare class Wrapper, P extends React.ComponentProps = React.ComponentProps> { protected readonly Component: C; /** * The component that will wrap the component you're testing. * * This is useful adding provider components to wrap your components with. */ protected WrappingComponent: React.ComponentType | undefined; /** * The default children for all test scenarios for the current test suite. * * This is set by the `.withDefaultChildren()` method. */ protected defaultChildren: React.ReactNode; /** * The default props for all test scenarios for the current test suite. * * This is set by the `.withDefaultProps()` method. */ protected defaultProps: Partial

; /** * The children specific to the test scenario. * * This is set by the `.withChildren()` method and cleared after `.mount()`, `.render()` or `.shallow()` are called. */ protected scenarioChildren: React.ReactNode; /** * The props specific to the test scenario. * * This is set by the `.withProps()` method and cleared after `.mount()`, `.render()` or `.shallow()` are called. */ protected scenarioProps: Partial

; /** * The merged props to be used during the lifecycle of the test scenario. * * This is set by the `.mount()`, `.render()` and `.shallow()` methods so that you can access the * props in your test via the `.props` getter. */ protected mergedProps: Partial

; /** * @param Component The React component to test */ constructor(Component: C); /** * Returns the props for the current test scenario lifecycle */ get props(): Partial

; /** * Sets the default children to be used in all test scenarios for the current test suite. * * This method can be chained with other methods. * * @param children The children to set */ withDefaultChildren: (children: React.ReactNode) => this; /** * Sets the default props to be used in all test scenarios for the current test suite. * * This method can be chained with other methods. * * @param props The props to set */ withDefaultProps: (props: Partial

) => this; /** * Sets the children to be used by the current test scenario. * * This method can be chained with other methods. * * @param children The children to set */ withChildren: (children: React.ReactNode) => this; /** * Sets the props to be used by the current test scenario. * * This method can be chained with other methods. * * @param props The props to set */ withProps: (props: Partial

) => this; /** * Renders the component using the `render` function from `react-testing-library`. * * Returns the `RenderResult` from `render()`. */ render: () => TRenderResult

; /** * This is called before `.render()` is called. * * You can use this to perform additional functionality when extending this class. */ protected beforeRender: () => void; /** * Defines the merged props for the current test scenario lifecycle */ protected defineProps: () => Partial

; /** * Resets the scenario-specific children and props for the instance */ protected reset(): void; } export {};