import type { MockInstance } from 'vitest';
/**
 * Helper method to that calls the given function inside an `act` function
 * and returns the return of that function.
 *
 * This is useful to avoid getting `TSS2454: Variable 'result' is used before being assigned.`
 * and having to use `result!.` everywhere in your test.
 *
 * @example
 * const result = await actWithReturn(() =>
 *   render(
 *     <Explorer
 *       columns={[{ propertyName: 'id' }]}
 *       dataProvider={provider}
 *     />,
 *   ),
 * );
 */
export declare function actWithReturn<T>(render: () => T | Promise<T>): Promise<T>;
/**
 * Helper used for getting mocked function as correct type.
 * This helper will not mock any thing. It's just converting Typescript types!
 * @param f the mocked function
 */
export declare const asSpy: <T>(fn: (...args: any) => T) => MockInstance;
//# sourceMappingURL=testing.d.ts.map