import type { TestInstance } from 'test-renderer'; import type { EventHandler } from './types'; export type FindEventHandlerOptions = { /** When `false`, only checks the handler of the given element, e.g. for `fireEvent.layout`. */ bubbles: boolean; }; type FindEventHandlerResult = { handler: EventHandler | null; /** * Elements whose handler was found but rejected by `isEventEnabled`, nearest to the fired * instance first. Lets callers tell "blocked handler" apart from "no handler at all". */ skippedTargets: TestInstance[]; }; /** * Finds the handler that should receive the event, as `fireEvent` does: events bubble up the * tree until an enabled handler is found, unless `bubbles` option is `false`. * * Note: handlers are looked up by the event type as passed, while event rules (direct events, * `isEventEnabled`) use the name without the `on*` prefix. */ export declare function findEventHandler(instance: TestInstance, eventType: string, options: FindEventHandlerOptions): FindEventHandlerResult; export {};