import * as RTL from '@testing-library/react'; import { Exists } from './utils/types'; /** * Returns the type of `RenderHookOptions` from `@testing-library/react` if it exists, * otherwise defaults to a compatible type. */ export type RenderHookOptions = Exists; /** * Returns the type of `RenderHookResult` from `@testing-library/react` if it exists, * otherwise defaults to a compatible type. */ export type RenderHookResult = Exists void; unmount: () => void; result: { all: Array; current: TResult; error: Error; }; }>; /** * Re-exports `renderHook` from `"@testing-library/react"` if it exists, * or from `"@testing-library/react-hooks"` * * (used when running in a React 17 test environment) */ export declare const renderHook: (render: (initialProps: TProps) => TResult, options?: RenderHookOptions) => RenderHookResult; //# sourceMappingURL=renderHook.d.ts.map