import type { EventType } from "@testing-library/dom"; import { FireFunction as originalFireFunction, FireObject as originalFireObject } from "@testing-library/dom"; export interface EventRecord { "*"?: Array<{ type: string; args: unknown[]; }>; [x: string]: unknown[] | undefined; } export interface RenderOptions { container?: Element | DocumentFragment; } export declare const INTERNAL_EVENTS: readonly ["create", "input", "render", "mount", "update", "destroy"]; export type InternalEventNames = (typeof INTERNAL_EVENTS)[number]; export type FireFunction = (...params: Parameters) => Promise>; export type FireObject = { [K in EventType]: (...params: Parameters) => Promise>; }; export declare function normalize(container: T): T; export declare function act unknown>(fn: T): Promise Promise ? AsyncReturnValue : ReturnType>; export declare const fireEvent: FireFunction & FireObject; export type AsyncReturnValue Promise> = Parameters["then"]>[0]>>[0];