import { a as select, c as query, d as mouseDown, f as hover, g as blur, h as click, i as sleep, l as press, m as dispatch, n as type, o as rightClick, p as focus, r as tap, s as q, t as waitFor, u as mouseUp } from "./index-CYusFHZV.js"; import * as ReactTestingLibrary from "@testing-library/react"; import { ReactNode } from "react"; //#region src/react.d.ts /** * Options for the `render` function. Accepts every option from Testing Library's * `render` (except `queries`), plus `strictMode` to wrap the rendered UI in * React's `StrictMode`. * @example * ```tsx * const options: RenderOptions = { strictMode: true }; * await render(, options); * ``` */ interface RenderOptions extends Omit { strictMode?: boolean; } /** * Renders a React element into the document for testing, waiting for effects and * the next frame to flush before resolving. * * Built on Testing Library's `render`, it returns `unmount` to remove the tree and * an async `rerender` to update it with new UI. Pass `strictMode: true` to wrap * the element in React's `StrictMode`, or any other Testing Library render option. * @example * ```tsx * const { rerender, unmount } = await render(); * await click(q.button("Submit")); * await rerender(); * unmount(); * ``` */ declare function render(ui: ReactNode, options?: RenderOptions): Promise<{ unmount: () => void; rerender: (newUi: ReactNode) => Promise; }>; //#endregion export { RenderOptions, blur, click, dispatch, focus, hover, mouseDown, mouseUp, press, q, query, render, rightClick, select, sleep, tap, type, waitFor }; //# sourceMappingURL=react.d.ts.map