import { jest } from "@jest/globals";
/**
 * @since 6.0.0
 */
export type RafSpy = jest.SpiedFunction<typeof requestAnimationFrame>;
/**
 * @example
 * ```ts
 * import { testImmediateRaf } from "@react-md/core/test-utils/jest-globals";
 *
 * describe("some test suite", () => {
 *   it("should test something with requestAnimationFrame", () => {
 *     const raf = testImmediateRaf();
 *
 *     // do some testing with requestAnimationFrame
 *
 *     // reset to original at the end of the test
 *     raf.mockRestore()
 *   });
 * });
 * ```
 *
 * @example Automatic Cleanup
 * ```ts
 * import { testImmediateRaf } from "@react-md/core/test-utils/jest-globals";
 *
 * afterEach(() => {
 *   jest.restoreAllMocks();
 * });
 *
 * describe("some test suite", () => {
 *   it("should test something with requestAnimationFrame", () => {
 *     const raf = testImmediateRaf();
 *
 *     // do some testing with requestAnimationFrame
 *   });
 * });
 * ```
 *
 * @since 6.0.0
 */
export declare const testImmediateRaf: () => RafSpy;
