import * as React from "react"; import { Wrapper } from "./Wrapper.js"; export type THook = (...values: any[]) => any; /** * A class to provide a simple method of setting up your React hook tests. */ export declare abstract class HookWrapper>, P extends Parameters = Parameters> { protected readonly hook: H; /** * The instance of the `Wrapper` used to mount the hook. */ wrapper: W; /** * The return value of the hook. */ returnValue?: ReturnType; /** * The params that were passed to the hook. */ protected params: P; /** * @param hook The hook you want to test */ protected constructor(hook: H); /** * Update the values provided to the hook. */ update: (...args: P) => void; /** * Mount the hook with the provided values. * * @param args The values to provide to the hook */ mount: (...args: P) => void; /** * The React component that wraps the usage of the hook and updates the `returnValue` property and `update` method. */ protected WrappingComponent: React.ComponentType; }