import type { TestInstance } from 'test-renderer'; /** * Tracks what a single `userEvent` interaction did, so `warnAboutUnhandledInteraction` * can tell whether any of its events had an effect. */ export declare class Interaction { readonly name: string; target: TestInstance; readonly eventNames: string[]; /** Elements that could handle the interaction but did not accept it, nearest first. */ readonly skippedTargets: TestInstance[]; hasCalledHandler: boolean; hasUpdatedNativeState: boolean; /** * @param name Name of the `userEvent` method, e.g. `press`. * @param target Element to dispatch events to. `press()` moves it to the element that * handles the press. */ constructor(name: string, target: TestInstance); dispatchEvent(eventName: string, ...event: unknown[]): Promise; /** * Records an event whose handler the action called itself instead of using `dispatchEvent`, * e.g. `pullToRefresh()` calling `onRefresh` from the `refreshControl` prop. */ recordEvent(eventName: string, hasCalledHandler: boolean): void; }