import type { TestInstance } from 'test-renderer'; /** * pointerEvents controls whether the View can be the target of touch events. * 'auto': The View and its children can be the target of touch events. * 'none': The View is never the target of touch events. * 'box-none': The View is never the target of touch events but its subviews can be * 'box-only': The view can be the target of touch events but its subviews cannot be * see the official react native doc https://reactnative.dev/docs/view#pointerevents */ export declare function isPointerEventEnabled(instance: TestInstance): boolean; /** * Returns the element whose `pointerEvents` prevents the instance from being the target of * touch events: the instance itself or one of its ancestors. Returns `null` if nothing blocks it. */ export declare function getPointerEventsBlocker(instance: TestInstance): TestInstance | null; export declare function isTouchResponder(instance: TestInstance): boolean; /** * Expects event type without the `on*` prefix (see `normalizeEventType`). */ export declare function isEventBlockableByPointerEvents(eventType: string): boolean; /** * Checks whether a device would deliver the event to the instance, taking into account * `pointerEvents`, non-editable `TextInput` and touch responders that decline the touch. * Expects event type without the `on*` prefix (see `normalizeEventType`). */ export declare function isEventEnabled(instance: TestInstance, eventType: string, nearestTouchResponder?: TestInstance): boolean;