import type { EventData } from '../data/observable'; export declare enum AccessibilityTrait { /** * The element allows direct touch interaction for VoiceOver users. */ AllowsDirectInteraction = 0, /** * The element should cause an automatic page turn when VoiceOver finishes reading the text within it. * Note: Requires custom view with accessibilityScroll(...) */ CausesPageTurn = 1, /** * The element is not enabled and does not respond to user interaction. */ NotEnabled = 2, /** * The element is currently selected. */ Selected = 3, /** * The element frequently updates its label or value. */ UpdatesFrequently = 4 } export declare enum AccessibilityRole { /** * The element allows continuous adjustment through a range of values. */ Adjustable = 0, /** * The element should be treated as a button. */ Button = 1, /** * The element behaves like a Checkbox */ Checkbox = 2, /** * The element is a header that divides content into sections, such as the title of a navigation bar. */ Header = 3, /** * The element should be treated as an image. */ Image = 4, /** * The element should be treated as a image button. */ ImageButton = 5, /** * The element behaves as a keyboard key. */ KeyboardKey = 6, /** * The element should be treated as a link. */ Link = 7, /** * The element has no traits. */ None = 8, /** * The element plays its own sound when activated. */ PlaysSound = 9, /** * The element behaves like a ProgressBar */ ProgressBar = 10, /** * The element behaves like a RadioButton */ RadioButton = 11, /** * The element should be treated as a search field. */ Search = 12, /** * The element behaves like a SpinButton */ SpinButton = 13, /** * The element starts a media session when it is activated. */ StartsMediaSession = 14, /** * The element should be treated as static text that cannot change. */ StaticText = 15, /** * The element provides summary information when the application starts. */ Summary = 16, /** * The element behaves like a switch */ Switch = 17 } export declare enum AccessibilityState { Selected = 0, Checked = 1, Unchecked = 2, Disabled = 3 } export declare enum AccessibilityLiveRegion { None = 0, Polite = 1, Assertive = 2 } export declare enum IOSPostAccessibilityNotificationType { Announcement = 0, Screen = 1, Layout = 2 } export declare enum AndroidAccessibilityEvent { /** * Invalid selection/focus position. */ INVALID_POSITION = -1, /** * Maximum length of the text fields. */ MAX_TEXT_LENGTH = 500, /** * Represents the event of clicking on a android.view.View like android.widget.Button = android.widget.CompoundButton = etc. */ VIEW_CLICKED = 1, /** * Represents the event of long clicking on a android.view.View like android.widget.Button = android.widget.CompoundButton = etc. */ VIEW_LONG_CLICKED = 2, /** * Represents the event of selecting an item usually in the context of an android.widget.AdapterView. */ VIEW_SELECTED = 4, /** * Represents the event of setting input focus of a android.view.View. */ VIEW_FOCUSED = 8, /** * Represents the event of changing the text of an android.widget.EditText. */ VIEW_TEXT_CHANGED = 16, /** * Represents the event of opening a android.widget.PopupWindow = android.view.Menu = android.app.Dialog = etc. */ WINDOW_STATE_CHANGED = 32, /** * Represents the event showing a android.app.Notification. */ NOTIFICATION_STATE_CHANGED = 64, /** * Represents the event of a hover enter over a android.view.View. */ VIEW_HOVER_ENTER = 128, /** * Represents the event of a hover exit over a android.view.View. */ VIEW_HOVER_EXIT = 256, /** * Represents the event of starting a touch exploration gesture. */ TOUCH_EXPLORATION_GESTURE_START = 512, /** * Represents the event of ending a touch exploration gesture. */ TOUCH_EXPLORATION_GESTURE_END = 1024, /** * Represents the event of changing the content of a window and more specifically the sub-tree rooted at the event's source. */ WINDOW_CONTENT_CHANGED = 2048, /** * Represents the event of scrolling a view. */ VIEW_SCROLLED = 4096, /** * Represents the event of changing the selection in an android.widget.EditText. */ VIEW_TEXT_SELECTION_CHANGED = 8192, /** * Represents the event of an application making an announcement. */ ANNOUNCEMENT = 16384, /** * Represents the event of gaining accessibility focus. */ VIEW_ACCESSIBILITY_FOCUSED = 32768, /** * Represents the event of clearing accessibility focus. */ VIEW_ACCESSIBILITY_FOCUS_CLEARED = 65536, /** * Represents the event of traversing the text of a view at a given movement granularity. */ VIEW_TEXT_TRAVERSED_AT_MOVEMENT_GRANULARITY = 131072, /** * Represents the event of beginning gesture detection. */ GESTURE_DETECTION_START = 262144, /** * Represents the event of ending gesture detection. */ GESTURE_DETECTION_END = 524288, /** * Represents the event of the user starting to touch the screen. */ TOUCH_INTERACTION_START = 1048576, /** * Represents the event of the user ending to touch the screen. */ TOUCH_INTERACTION_END = 2097152, /** * Mask for AccessibilityEvent all types. */ ALL_MASK = -1 } export interface AccessibilityEventPerformEscape extends EventData { cancel?: boolean; } export interface AccessibilityEventOptions { androidAccessibilityEvent?: AndroidAccessibilityEvent; iosNotificationType?: IOSPostAccessibilityNotificationType; message?: string; }