UNPKG

react-nativescript

Version:
911 lines (910 loc) 43.6 kB
/** * Modified from react-nativescript-jsx.ts, generated from source `8.3.5-core` * by commit `d774c1f` of David Perhouse's nativescript-source-to-jsx-def, on * 1st Oct 2022 via `cd exporter && npm run getsource`. * Licence in /LICENSE. * Modifications: * - Addition of whole new lines are preceded by a block comment. * - The *Attributes interfaces weren't exported, so I exported them. * - For all *color properties that only accepted Color, I allowed string, too. * - For all length properties (e.g. LengthPxUnit), I allowed string, too. */ import type { CoreTypes } from "@nativescript/core"; declare type AccessibilityLiveRegion = import("@nativescript/core").AccessibilityLiveRegion; declare type AccessibilityRole = import("@nativescript/core").AccessibilityRole; declare type AccessibilityState = import("@nativescript/core").AccessibilityState; declare type ActionBar = import("@nativescript/core").ActionBar; declare type ActionItems = import("@nativescript/core").ActionItems; declare type AndroidActionBarSettings = import("@nativescript/core/ui/action-bar").AndroidActionBarSettings; declare type AndroidActionItemSettings = import("@nativescript/core/ui/action-bar").AndroidActionItemSettings; declare type AndroidFrame = import("@nativescript/core/ui/frame").AndroidFrame; declare type BackstackEntry = import("@nativescript/core").BackstackEntry; declare type CSSShadow = import("@nativescript/core/ui/styling/css-shadow").CSSShadow; declare type Color = import("@nativescript/core").Color; declare type CreateViewEventData = import("@nativescript/core").CreateViewEventData; declare type DOMNode = import("@nativescript/core/debugger/dom-node").DOMNode; declare type EventData = import("@nativescript/core").EventData; declare type FormattedString = import("@nativescript/core").FormattedString; declare type Frame = import("@nativescript/core").Frame; declare type FrameBackstackEntry = import("@nativescript/core").BackstackEntry; declare type FrameNavigationEntry = import("@nativescript/core").NavigationEntry; declare type FrameNavigationTransition = import("@nativescript/core").NavigationTransition; declare type GestureEventData = import("@nativescript/core").GestureEventData; declare type IOSActionItemSettings = import("@nativescript/core/ui/action-bar").IOSActionItemSettings; declare type ImageSource = import("@nativescript/core").ImageSource; declare type ItemEventData = import("@nativescript/core").ItemEventData; declare type ItemsSource = import("@nativescript/core").ItemsSource; declare type KeyedTemplate = import("@nativescript/core").KeyedTemplate; declare type LayoutBase = import("@nativescript/core").LayoutBase; declare type LinearGradient = import("@nativescript/core/ui/styling/linear-gradient").LinearGradient; declare type ListViewItemsSource = import("@nativescript/core").ItemsSource; declare type LoadEventData = import("@nativescript/core").LoadEventData; declare type NavigatedData = import("@nativescript/core").NavigatedData; declare type NavigationButton = import("@nativescript/core").NavigationButton; declare type NavigationData = import("@nativescript/core/ui/frame").NavigationData; declare type NavigationEntry = import("@nativescript/core").NavigationEntry; declare type NavigationTransition = import("@nativescript/core").NavigationTransition; declare type ObservableArray<T1> = import("@nativescript/core").ObservableArray<T1>; declare type Page = import("@nativescript/core").Page; declare type PanGestureEventData = import("@nativescript/core").PanGestureEventData; declare type PinchGestureEventData = import("@nativescript/core").PinchGestureEventData; declare type PropertyChangeData = import("@nativescript/core").PropertyChangeData; declare type RepeaterItemsSource = import("@nativescript/core").ItemsSource; declare type RotationGestureEventData = import("@nativescript/core").RotationGestureEventData; declare type ScrollEventData = import("@nativescript/core").ScrollEventData; declare type SegmentedBarItem = import("@nativescript/core").SegmentedBarItem; declare type SelectedIndexChangedEventData = import("@nativescript/core/ui/segmented-bar").SelectedIndexChangedEventData; declare type ShownModallyData = import("@nativescript/core").ShownModallyData; declare type Span = import("@nativescript/core").Span; declare type SwipeGestureEventData = import("@nativescript/core").SwipeGestureEventData; declare type TabViewItem = import("@nativescript/core").TabViewItem; declare type TabViewSelectedIndexChangedEventData = import("@nativescript/core/ui/tab-view").SelectedIndexChangedEventData; declare type TapGestureEventData = import("@nativescript/core").TapGestureEventData; declare type Template = import("@nativescript/core").Template; declare type TouchAnimationOptions = import("@nativescript/core").TouchAnimationOptions; declare type TouchGestureEventData = import("@nativescript/core").TouchGestureEventData; declare type View = import("@nativescript/core").View; declare type ViewBase = import("@nativescript/core").ViewBase; declare type WebViewInterfacesLoadEventData = import("@nativescript/core").LoadEventData; declare type iOSFrame = import("@nativescript/core/ui/frame").iOSFrame; declare type Override<What, With> = Omit<What, keyof With> & With; export declare type TAbsoluteLayoutAttributes = Override<LayoutBaseAttributes, {}>; export interface AbsoluteLayoutAttributes extends TAbsoluteLayoutAttributes { } export declare type TActionBarAttributes = Override<ViewAttributes, { actionItems?: ActionItems; android?: AndroidActionBarSettings; androidContentInset?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; androidContentInsetLeft?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; androidContentInsetRight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; effectiveContentInsetLeft?: number; effectiveContentInsetRight?: number; flat?: string | boolean; ios?: any; iosIconRenderingMode?: "automatic" | "alwaysOriginal" | "alwaysTemplate"; navigationButton?: NavigationButton; onFlatChange?: (args: PropertyChangeData) => void; onIosIconRenderingModeChange?: (args: PropertyChangeData) => void; onTitleChange?: (args: PropertyChangeData) => void; title?: string; titleView?: View; }>; export interface ActionBarAttributes extends TActionBarAttributes { } export declare type TActionItemAttributes = Override<ViewBaseAttributes, { actionBar?: ActionBar; actionView?: View; android?: AndroidActionItemSettings; icon?: string; ios?: IOSActionItemSettings; onIconChange?: (args: PropertyChangeData) => void; onTap?: (args: EventData) => void; onTextChange?: (args: PropertyChangeData) => void; onVisibilityChange?: (args: PropertyChangeData) => void; text?: string; visibility?: string; }>; export interface ActionItemAttributes extends TActionItemAttributes { } export declare type TActivityIndicatorAttributes = Override<ViewAttributes, { android?: any; busy?: string | boolean; ios?: any; onBusyChange?: (args: PropertyChangeData) => void; }>; export interface ActivityIndicatorAttributes extends TActivityIndicatorAttributes { } export declare type TButtonAttributes = Override<TextBaseAttributes, { accessibilityRole?: AccessibilityRole; accessible?: boolean; android?: any; ios?: any; onTap?: (args: EventData) => void; textWrap?: boolean; }>; export interface ButtonAttributes extends TButtonAttributes { } export declare type TContainerViewAttributes = Override<ViewAttributes, { iosOverflowSafeArea?: boolean; }>; export interface ContainerViewAttributes extends TContainerViewAttributes { } export declare type TContentViewAttributes = Override<CustomLayoutViewAttributes, { content?: View; layoutView?: View; }>; export interface ContentViewAttributes extends TContentViewAttributes { } export declare type TCustomLayoutViewAttributes = Override<ContainerViewAttributes, {}>; export interface CustomLayoutViewAttributes extends TCustomLayoutViewAttributes { } export declare type TDatePickerAttributes = Override<ViewAttributes, { android?: any; date?: string | Date; day?: string | number; hour?: string | number; ios?: any; iosPreferredDatePickerStyle?: string | number; maxDate?: string | Date; minDate?: string | Date; minute?: string | number; month?: string | number; onDateChange?: (args: PropertyChangeData) => void; onDayChange?: (args: PropertyChangeData) => void; onHourChange?: (args: PropertyChangeData) => void; onIosPreferredDatePickerStyleChange?: (args: PropertyChangeData) => void; onMaxDateChange?: (args: PropertyChangeData) => void; onMinDateChange?: (args: PropertyChangeData) => void; onMinuteChange?: (args: PropertyChangeData) => void; onMonthChange?: (args: PropertyChangeData) => void; onSecondChange?: (args: PropertyChangeData) => void; onShowTimeChange?: (args: PropertyChangeData) => void; onYearChange?: (args: PropertyChangeData) => void; second?: string | number; showTime?: string | boolean; year?: string | number; }>; export interface DatePickerAttributes extends TDatePickerAttributes { } export declare type TDockLayoutAttributes = Override<LayoutBaseAttributes, { onStretchLastChildChange?: (args: PropertyChangeData) => void; stretchLastChild?: string | boolean; }>; export interface DockLayoutAttributes extends TDockLayoutAttributes { } export declare type TEditableTextBaseAttributes = Override<TextBaseAttributes, { autocapitalizationType?: "none" | "words" | "sentences" | "allcharacters"; autocorrect?: string | boolean; autofillType?: string; editable?: string | boolean; hint?: string; keyboardType?: "number" | "datetime" | "phone" | "url" | "email" | "integer"; maxLength?: string | number; onAutocapitalizationTypeChange?: (args: PropertyChangeData) => void; onAutocorrectChange?: (args: PropertyChangeData) => void; onAutofillTypeChange?: (args: PropertyChangeData) => void; onEditableChange?: (args: PropertyChangeData) => void; onHintChange?: (args: PropertyChangeData) => void; onKeyboardTypeChange?: (args: PropertyChangeData) => void; onMaxLengthChange?: (args: PropertyChangeData) => void; onReturnKeyTypeChange?: (args: PropertyChangeData) => void; onUpdateTextTriggerChange?: (args: PropertyChangeData) => void; returnKeyType?: "done" | "next" | "go" | "search" | "send"; updateTextTrigger?: "focusLost" | "textChanged"; }>; export interface EditableTextBaseAttributes extends TEditableTextBaseAttributes { } export declare type TFlexboxLayoutAttributes = Override<LayoutBaseAttributes, { alignContent?: "stretch" | "flex-start" | "flex-end" | "center" | "space-between" | "space-around"; alignItems?: "stretch" | "flex-start" | "flex-end" | "center" | "baseline"; flexDirection?: "column" | "row" | "row-reverse" | "column-reverse"; flexWrap?: "nowrap" | "wrap" | "wrap-reverse"; justifyContent?: "flex-start" | "flex-end" | "center" | "space-between" | "space-around"; }>; export interface FlexboxLayoutAttributes extends TFlexboxLayoutAttributes { } export declare type TFormattedStringAttributes = Override<ViewBaseAttributes, { backgroundColor?: string | Color; color?: string | Color; fontFamily?: string; fontSize?: string | number; fontStyle?: "normal" | "italic"; fontWeight?: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "bold" | "700" | "800" | "900"; spans?: ObservableArray<Span>; textDecoration?: "none" | "underline" | "line-through" | "underline line-through"; }>; export interface FormattedStringAttributes extends TFormattedStringAttributes { } export declare type TFrameAttributes = Override<FrameBaseAttributes, { actionBarVisibility?: "always" | "never" | "auto"; android?: AndroidFrame; animated?: boolean; backStack?: FrameBackstackEntry[]; currentEntry?: FrameNavigationEntry; currentPage?: Page; ios?: iOSFrame; navigationBarHeight?: number; onNavigatedTo?: (args: NavigationData) => void; onNavigatingTo?: (args: NavigationData) => void; transition?: FrameNavigationTransition; }>; export interface FrameAttributes extends TFrameAttributes { } export declare type TFrameBaseAttributes = Override<CustomLayoutViewAttributes, { actionBarVisibility?: "always" | "never" | "auto"; animated?: boolean; backStack?: BackstackEntry[]; currentEntry?: NavigationEntry; currentPage?: Page; defaultPage?: string; navigationBarHeight?: number; onActionBarVisibilityChange?: (args: PropertyChangeData) => void; onDefaultPageChange?: (args: PropertyChangeData) => void; transition?: NavigationTransition; }>; export interface FrameBaseAttributes extends TFrameBaseAttributes { } export declare type TGridLayoutAttributes = Override<LayoutBaseAttributes, { columns?: string; rows?: string; }>; export interface GridLayoutAttributes extends TGridLayoutAttributes { } export declare type THtmlViewAttributes = Override<ViewAttributes, { android?: any; html?: string; ios?: any; onHtmlChange?: (args: PropertyChangeData) => void; }>; export interface HtmlViewAttributes extends THtmlViewAttributes { } export declare type TImageAttributes = Override<ViewAttributes, { android?: any; decodeHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; decodeWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; imageSource?: string | ImageSource; ios?: any; isLoading?: string | boolean; loadMode?: "sync" | "async"; onDecodeHeightChange?: (args: PropertyChangeData) => void; onDecodeWidthChange?: (args: PropertyChangeData) => void; onImageSourceChange?: (args: PropertyChangeData) => void; onIsLoadingChange?: (args: PropertyChangeData) => void; onLoadModeChange?: (args: PropertyChangeData) => void; onSrcChange?: (args: PropertyChangeData) => void; onStretchChange?: (args: PropertyChangeData) => void; src?: string | any; stretch?: "none" | "aspectFill" | "aspectFit" | "fill"; tintColor?: string | Color; }>; export interface ImageAttributes extends TImageAttributes { } export declare type TLabelAttributes = Override<TextBaseAttributes, { android?: any; ios?: any; textWrap?: string | boolean; }>; export interface LabelAttributes extends TLabelAttributes { } export declare type TLayoutBaseAttributes = Override<CustomLayoutViewAttributes, { clipToBounds?: string | boolean; isPassThroughParentEnabled?: string | boolean; onClipToBoundsChange?: (args: PropertyChangeData) => void; onIsPassThroughParentEnabledChange?: (args: PropertyChangeData) => void; padding?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingBottom?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingLeft?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingRight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingTop?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; }>; export interface LayoutBaseAttributes extends TLayoutBaseAttributes { } export declare type TListPickerAttributes = Override<ViewAttributes, { android?: any; ios?: any; isItemsSource?: boolean; items?: string | any[] | ItemsSource; onItemsChange?: (args: PropertyChangeData) => void; onSelectedIndexChange?: (args: PropertyChangeData) => void; onSelectedValueChange?: (args: PropertyChangeData) => void; onTextFieldChange?: (args: PropertyChangeData) => void; onValueFieldChange?: (args: PropertyChangeData) => void; selectedIndex?: string | number; selectedValue?: string; textField?: string; valueField?: string; }>; export interface ListPickerAttributes extends TListPickerAttributes { } export declare type TListViewAttributes = Override<ViewAttributes, { android?: any; ios?: any; iosEstimatedRowHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; itemIdGenerator?: (item: any, index: number, items: any) => number; itemTemplate?: string | Template; itemTemplateSelector?: string | ((item: any, index: number, items: any) => string); itemTemplates?: string | KeyedTemplate[]; items?: string | any[] | ListViewItemsSource; onIosEstimatedRowHeightChange?: (args: PropertyChangeData) => void; onItemLoading?: (args: ItemEventData) => void; onItemTap?: (args: ItemEventData) => void; onItemTemplateChange?: (args: PropertyChangeData) => void; onItemTemplatesChange?: (args: PropertyChangeData) => void; onItemsChange?: (args: PropertyChangeData) => void; onLoadMoreItems?: (args: EventData) => void; onRowHeightChange?: (args: PropertyChangeData) => void; rowHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; separatorColor?: string | Color; }>; export interface ListViewAttributes extends TListViewAttributes { } export declare type TNavigationButtonAttributes = Override<ActionItemAttributes, {}>; export interface NavigationButtonAttributes extends TNavigationButtonAttributes { } export declare type TObservableAttributes = {}; export interface ObservableAttributes extends TObservableAttributes { } export declare type TPageAttributes = Override<PageBaseAttributes, { accessibilityAnnouncePageEnabled?: boolean; actionBar?: ActionBar; actionBarHidden?: boolean; androidStatusBarBackground?: string | Color; backgroundSpanUnderStatusBar?: boolean; enableSwipeBackNavigation?: boolean; frame?: Frame; hasActionBar?: boolean; navigationContext?: any; onAccessibilityPerformEscape?: () => boolean; onNavigatedFrom?: (args: NavigatedData) => void; onNavigatedTo?: (args: NavigatedData) => void; onNavigatingFrom?: (args: NavigatedData) => void; onNavigatingTo?: (args: NavigatedData) => void; statusBarStyle?: "light" | "dark"; }>; export interface PageAttributes extends TPageAttributes { } export declare type TPageBaseAttributes = Override<ContentViewAttributes, { accessibilityAnnouncePageEnabled?: boolean; actionBar?: ActionBar; actionBarHidden?: string | boolean; androidStatusBarBackground?: string | Color; backgroundSpanUnderStatusBar?: string | boolean; enableSwipeBackNavigation?: string | boolean; frame?: Frame; hasActionBar?: boolean; navigationContext?: any; onActionBarHiddenChange?: (args: PropertyChangeData) => void; onBackgroundSpanUnderStatusBarChange?: (args: PropertyChangeData) => void; onEnableSwipeBackNavigationChange?: (args: PropertyChangeData) => void; onNavigatedFrom?: (args: NavigatedData) => void; onNavigatedTo?: (args: NavigatedData) => void; onNavigatingFrom?: (args: NavigatedData) => void; onNavigatingTo?: (args: NavigatedData) => void; onShowingModally?: (args: ShownModallyData) => void; onShownModally?: (args: ShownModallyData) => void; page?: Page; statusBarStyle?: "light" | "dark"; }>; export interface PageBaseAttributes extends TPageBaseAttributes { } export declare type TPlaceholderAttributes = Override<ViewAttributes, { onCreatingView?: (args: CreateViewEventData) => void; }>; export interface PlaceholderAttributes extends TPlaceholderAttributes { } export declare type TProgressAttributes = Override<ViewAttributes, { android?: any; ios?: any; maxValue?: string | number; onMaxValueChange?: (args: PropertyChangeData) => void; onValueChange?: (args: PropertyChangeData) => void; value?: string | number; }>; export interface ProgressAttributes extends TProgressAttributes { } export declare type TProxyViewContainerAttributes = Override<LayoutBaseAttributes, { android?: any; ios?: any; isLayoutRequested?: boolean; onProxyChange?: (args: PropertyChangeData) => void; proxy?: string; }>; export interface ProxyViewContainerAttributes extends TProxyViewContainerAttributes { } export declare type TRepeaterAttributes = Override<CustomLayoutViewAttributes, { android?: any; ios?: any; itemTemplate?: string | Template; itemTemplateSelector?: string | ((item: any, index: number, items: any) => string); itemTemplates?: string | KeyedTemplate[]; items?: string | any[] | RepeaterItemsSource; itemsLayout?: string | LayoutBase; onItemTemplateChange?: (args: PropertyChangeData) => void; onItemTemplatesChange?: (args: PropertyChangeData) => void; onItemsChange?: (args: PropertyChangeData) => void; onItemsLayoutChange?: (args: PropertyChangeData) => void; }>; export interface RepeaterAttributes extends TRepeaterAttributes { } export declare type TRootLayoutAttributes = Override<GridLayoutAttributes, {}>; export interface RootLayoutAttributes extends TRootLayoutAttributes { } export declare type TScrollViewAttributes = Override<ContentViewAttributes, { horizontalOffset?: number; isScrollEnabled?: string | boolean; onIsScrollEnabledChange?: (args: PropertyChangeData) => void; onOrientationChange?: (args: PropertyChangeData) => void; onScroll?: (args: ScrollEventData) => void; onScrollBarIndicatorVisibleChange?: (args: PropertyChangeData) => void; orientation?: "horizontal" | "vertical"; scrollBarIndicatorVisible?: string | boolean; scrollableHeight?: number; scrollableWidth?: number; verticalOffset?: number; }>; export interface ScrollViewAttributes extends TScrollViewAttributes { } export declare type TSearchBarAttributes = Override<ViewAttributes, { android?: any; hint?: string; ios?: any; onClose?: (args: EventData) => void; onHintChange?: (args: PropertyChangeData) => void; onSubmit?: (args: EventData) => void; onTextChange?: (args: PropertyChangeData) => void; onTextFieldBackgroundColorChange?: (args: PropertyChangeData) => void; onTextFieldHintColorChange?: (args: PropertyChangeData) => void; text?: string; textFieldBackgroundColor?: string | Color; textFieldHintColor?: string | Color; }>; export interface SearchBarAttributes extends TSearchBarAttributes { } export declare type TSegmentedBarAttributes = Override<ViewAttributes, { items?: string | SegmentedBarItem[]; onItemsChange?: (args: PropertyChangeData) => void; onSelectedIndexChange?: (args: PropertyChangeData) => void; onSelectedIndexChanged?: (args: SelectedIndexChangedEventData) => void; selectedBackgroundColor?: string | Color; selectedIndex?: string | number; }>; export interface SegmentedBarAttributes extends TSegmentedBarAttributes { } export declare type TSegmentedBarItemAttributes = Override<ViewBaseAttributes, { title?: string; }>; export interface SegmentedBarItemAttributes extends TSegmentedBarItemAttributes { } export declare type TSliderAttributes = Override<ViewAttributes, { accessibilityRole?: AccessibilityRole; accessibilityStep?: string | number; accessible?: boolean; android?: any; ios?: any; maxValue?: string | number; minValue?: string | number; onMaxValueChange?: (args: PropertyChangeData) => void; onMinValueChange?: (args: PropertyChangeData) => void; onValueChange?: (args: PropertyChangeData) => void; value?: string | number; }>; export interface SliderAttributes extends TSliderAttributes { } export declare type TSpanAttributes = Override<ViewBaseAttributes, { backgroundColor?: string | Color; color?: string | Color; fontFamily?: string; fontSize?: string | number; fontStyle?: "normal" | "italic"; fontWeight?: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "bold" | "700" | "800" | "900"; tappable?: boolean; text?: string; textDecoration?: "none" | "underline" | "line-through" | "underline line-through"; }>; export interface SpanAttributes extends TSpanAttributes { } export declare type TStackLayoutAttributes = Override<LayoutBaseAttributes, { onOrientationChange?: (args: PropertyChangeData) => void; orientation?: "horizontal" | "vertical"; }>; export interface StackLayoutAttributes extends TStackLayoutAttributes { } export declare type TSwitchAttributes = Override<ViewAttributes, { android?: any; checked?: string | boolean; ios?: any; offBackgroundColor?: string | Color; onCheckedChange?: (args: PropertyChangeData) => void; onOffBackgroundColorChange?: (args: PropertyChangeData) => void; }>; export interface SwitchAttributes extends TSwitchAttributes { } export declare type TTabViewAttributes = Override<ViewAttributes, { android?: any; androidIconRenderingMode?: "alwaysOriginal" | "alwaysTemplate"; androidOffscreenTabLimit?: string | number; androidSelectedTabHighlightColor?: string | Color; androidSwipeEnabled?: string | boolean; androidTabsPosition?: "top" | "bottom"; ios?: any; iosIconRenderingMode?: "automatic" | "alwaysOriginal" | "alwaysTemplate"; items?: string | TabViewItem[]; onAndroidIconRenderingModeChange?: (args: PropertyChangeData) => void; onAndroidOffscreenTabLimitChange?: (args: PropertyChangeData) => void; onAndroidSwipeEnabledChange?: (args: PropertyChangeData) => void; onAndroidTabsPositionChange?: (args: PropertyChangeData) => void; onIosIconRenderingModeChange?: (args: PropertyChangeData) => void; onItemsChange?: (args: PropertyChangeData) => void; onSelectedIndexChange?: (args: PropertyChangeData) => void; onSelectedIndexChanged?: (args: TabViewSelectedIndexChangedEventData) => void; selectedIndex?: string | number; selectedTabTextColor?: string | Color; tabBackgroundColor?: string | Color; tabTextColor?: string | Color; tabTextFontSize?: string | number; }>; export interface TabViewAttributes extends TTabViewAttributes { } export declare type TTabViewItemAttributes = Override<ViewBaseAttributes, { canBeLoaded?: boolean; iconSource?: string; textTransform?: "none" | "initial" | "capitalize" | "uppercase" | "lowercase"; title?: string; view?: View; }>; export interface TabViewItemAttributes extends TTabViewItemAttributes { } export declare type TTextBaseAttributes = Override<ViewAttributes, { fontFamily?: string; fontSize?: string | number; fontStyle?: "normal" | "italic"; fontWeight?: "normal" | "100" | "200" | "300" | "400" | "500" | "600" | "bold" | "700" | "800" | "900"; formattedText?: string | FormattedString; letterSpacing?: string | number; lineHeight?: string | number; maxLines?: string | number; onFormattedTextChange?: (args: PropertyChangeData) => void; onTextChange?: (args: PropertyChangeData) => void; padding?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingBottom?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingLeft?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingRight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; paddingTop?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; text?: string; textAlignment?: "left" | "right" | "center" | "initial" | "justify"; textDecoration?: "none" | "underline" | "line-through" | "underline line-through"; textShadow?: string | CSSShadow; textTransform?: "none" | "initial" | "capitalize" | "uppercase" | "lowercase"; whiteSpace?: "initial" | "normal" | "nowrap"; }>; export interface TextBaseAttributes extends TTextBaseAttributes { } export declare type TTextFieldAttributes = Override<EditableTextBaseAttributes, { android?: any; closeOnReturn?: string | boolean; ios?: any; onCloseOnReturnChange?: (args: PropertyChangeData) => void; onSecureChange?: (args: PropertyChangeData) => void; secure?: string | boolean; secureWithoutAutofill?: boolean; }>; export interface TextFieldAttributes extends TTextFieldAttributes { } export declare type TTextViewAttributes = Override<EditableTextBaseAttributes, { android?: any; ios?: any; maxLines?: number; }>; export interface TextViewAttributes extends TTextViewAttributes { } export declare type TTimePickerAttributes = Override<ViewAttributes, { android?: any; hour?: string | number; ios?: any; iosPreferredDatePickerStyle?: string | number; maxHour?: string | number; maxMinute?: string | number; minHour?: string | number; minMinute?: string | number; minute?: string | number; minuteInterval?: string | number; onHourChange?: (args: PropertyChangeData) => void; onIosPreferredDatePickerStyleChange?: (args: PropertyChangeData) => void; onMaxHourChange?: (args: PropertyChangeData) => void; onMaxMinuteChange?: (args: PropertyChangeData) => void; onMinHourChange?: (args: PropertyChangeData) => void; onMinMinuteChange?: (args: PropertyChangeData) => void; onMinuteChange?: (args: PropertyChangeData) => void; onMinuteIntervalChange?: (args: PropertyChangeData) => void; onTimeChange?: (args: PropertyChangeData) => void; time?: string | Date; }>; export interface TimePickerAttributes extends TTimePickerAttributes { } export declare type TViewAttributes = Override<ViewCommonAttributes, { accessibilityHidden?: boolean; accessibilityHint?: string; accessibilityIdentifier?: string; accessibilityLabel?: string; accessibilityLanguage?: string; accessibilityLiveRegion?: AccessibilityLiveRegion; accessibilityMediaSession?: boolean; accessibilityRole?: AccessibilityRole; accessibilityState?: AccessibilityState; accessibilityValue?: string; accessible?: boolean; android?: any; androidDynamicElevationOffset?: number; androidElevation?: number; automationText?: string; background?: string; backgroundColor?: string | Color; backgroundImage?: string | LinearGradient; bindingContext?: any; borderBottomColor?: string | Color; borderBottomLeftRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderBottomRightRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderBottomWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderColor?: string | Color; borderLeftColor?: string | Color; borderLeftWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderRadius?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderRightColor?: string | Color; borderRightWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopColor?: string | Color; borderTopLeftRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopRightRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderWidth?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; boxShadow?: string | CSSShadow; color?: string | Color; column?: string | number; columnSpan?: string | number; css?: string; cssClasses?: Set<string>; cssPseudoClasses?: Set<string>; cssType?: string; dock?: "left" | "top" | "right" | "bottom"; height?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; horizontalAlignment?: "left" | "right" | "stretch" | "center"; ios?: any; iosIgnoreSafeArea?: boolean; iosOverflowSafeArea?: boolean; iosOverflowSafeAreaEnabled?: boolean; isEnabled?: boolean; isLayoutRequired?: boolean; isLayoutValid?: boolean; isUserInteractionEnabled?: boolean; left?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; margin?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginBottom?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginLeft?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginRight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginTop?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; minHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; minWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; modal?: View; onAndroidBackPressed?: (args: EventData) => void; onColumnChange?: (args: PropertyChangeData) => void; onColumnSpanChange?: (args: PropertyChangeData) => void; onDockChange?: (args: PropertyChangeData) => void; onDoubleTap?: (arg: TapGestureEventData) => any; onLeftChange?: (args: PropertyChangeData) => void; onLoaded?: (args: EventData) => void; onLongPress?: (arg: GestureEventData) => any; onPan?: (arg: PanGestureEventData) => any; onPinch?: (arg: PinchGestureEventData) => any; onRotation?: (arg: RotationGestureEventData) => any; onRowChange?: (args: PropertyChangeData) => void; onRowSpanChange?: (args: PropertyChangeData) => void; onShowingModally?: (args: ShownModallyData) => void; onShownModally?: (args: ShownModallyData) => void; onLayoutChanged?: (args: EventData) => void; onSwipe?: (arg: SwipeGestureEventData) => any; onTap?: (arg: TapGestureEventData) => any; onTopChange?: (args: PropertyChangeData) => void; onTouch?: (arg: TouchGestureEventData) => any; onUnloaded?: (args: EventData) => void; opacity?: number; originX?: number; originY?: number; perspective?: number; rotate?: number; rotateX?: number; rotateY?: number; row?: string | number; rowSpan?: string | number; scaleX?: number; scaleY?: number; top?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; translateX?: number; translateY?: number; verticalAlignment?: "top" | "bottom" | "stretch" | "middle"; visibility?: "hidden" | "visible" | "collapse" | "collapsed"; width?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; }>; export interface ViewAttributes extends TViewAttributes { } export declare type TViewBaseAttributes = Override<ObservableAttributes, { ['class']?: string; alignSelf?: "auto" | "stretch" | "flex-start" | "flex-end" | "center" | "baseline"; android?: any; bindingContext?: string | any; className?: string; col?: number; colSpan?: number; column?: number; columnSpan?: number; cssClasses?: Set<string>; cssPseudoClasses?: Set<string>; dock?: "left" | "top" | "right" | "bottom"; domNode?: DOMNode; effectiveBorderBottomWidth?: number; effectiveBorderLeftWidth?: number; effectiveBorderRightWidth?: number; effectiveBorderTopWidth?: number; effectiveHeight?: number; effectiveLeft?: number; effectiveMarginBottom?: number; effectiveMarginLeft?: number; effectiveMarginRight?: number; effectiveMarginTop?: number; effectiveMinHeight?: number; effectiveMinWidth?: number; effectivePaddingBottom?: number; effectivePaddingLeft?: number; effectivePaddingRight?: number; effectivePaddingTop?: number; effectiveTop?: number; effectiveWidth?: number; flexGrow?: number; flexShrink?: number; flexWrapBefore?: boolean; hidden?: string | boolean; id?: string; ios?: any; isCollapsed?: any; isLoaded?: boolean; left?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; nativeView?: any; onBindingContextChange?: (args: PropertyChangeData) => void; onClassNameChange?: (args: PropertyChangeData) => void; onHiddenChange?: (args: PropertyChangeData) => void; onIdChange?: (args: PropertyChangeData) => void; order?: number; page?: Page; parent?: ViewBase; parentNode?: ViewBase; recycleNativeView?: "always" | "never" | "auto"; reusable?: boolean; row?: number; rowSpan?: number; top?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; typeName?: string; viewController?: any; }>; export interface ViewBaseAttributes extends TViewBaseAttributes { } export declare type TViewCommonAttributes = Override<ViewBaseAttributes, { accessibilityHidden?: string | boolean; accessibilityHint?: string; accessibilityIdentifier?: string; accessibilityIgnoresInvertColors?: string | boolean; accessibilityLabel?: string; accessibilityLanguage?: string; accessibilityLiveRegion?: AccessibilityLiveRegion; accessibilityMediaSession?: string | boolean; accessibilityRole?: AccessibilityRole; accessibilityState?: AccessibilityState; accessibilityValue?: string; accessible?: string | boolean; androidDynamicElevationOffset?: string | number; androidElevation?: string | number; automationText?: string; background?: string; backgroundColor?: string | Color; backgroundImage?: string | LinearGradient; backgroundPosition?: string; backgroundRepeat?: "repeat" | "repeat-x" | "repeat-y" | "no-repeat"; backgroundSize?: string; borderBottomColor?: string | Color; borderBottomLeftRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderBottomRightRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderBottomWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderColor?: string | Color; borderLeftColor?: string | Color; borderLeftWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderRadius?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderRightColor?: string | Color; borderRightWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopColor?: string | Color; borderTopLeftRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopRightRadius?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderTopWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; borderWidth?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; boxShadow?: string | CSSShadow; color?: string | Color; css?: string; cssType?: string; height?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; horizontalAlignment?: "left" | "right" | "stretch" | "center"; ignoreTouchAnimation?: string | boolean; iosIgnoreSafeArea?: string | boolean; iosOverflowSafeArea?: string | boolean; iosOverflowSafeAreaEnabled?: string | boolean; isEnabled?: string | boolean; isLayoutRequired?: boolean; isLayoutValid?: boolean; isUserInteractionEnabled?: string | boolean; margin?: string | number | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginBottom?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginLeft?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginRight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; marginTop?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; minHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; minWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; modal?: View; onAccessibilityHintChange?: (args: PropertyChangeData) => void; onAccessibilityIdentifierChange?: (args: PropertyChangeData) => void; onAccessibilityIgnoresInvertColorsChange?: (args: PropertyChangeData) => void; onAccessibilityLabelChange?: (args: PropertyChangeData) => void; onAccessibilityValueChange?: (args: PropertyChangeData) => void; onIgnoreTouchAnimationChange?: (args: PropertyChangeData) => void; onIosIgnoreSafeAreaChange?: (args: PropertyChangeData) => void; onIosOverflowSafeAreaChange?: (args: PropertyChangeData) => void; onIosOverflowSafeAreaEnabledChange?: (args: PropertyChangeData) => void; onIsEnabledChange?: (args: PropertyChangeData) => void; onIsUserInteractionEnabledChange?: (args: PropertyChangeData) => void; onOriginXChange?: (args: PropertyChangeData) => void; onOriginYChange?: (args: PropertyChangeData) => void; onTestIDChange?: (args: PropertyChangeData) => void; onTouchAnimationChange?: (args: PropertyChangeData) => void; onTouchDelayChange?: (args: PropertyChangeData) => void; opacity?: string | number; originX?: string | number; originY?: string | number; perspective?: string | number; rotate?: string | number; rotateX?: string | number; rotateY?: string | number; scaleX?: string | number; scaleY?: string | number; testID?: string; textTransform?: "none" | "initial" | "capitalize" | "uppercase" | "lowercase"; touchAnimation?: string | false | true | TouchAnimationOptions; touchDelay?: string | number; translateX?: string | number; translateY?: string | number; verticalAlignment?: "top" | "bottom" | "stretch" | "middle"; visibility?: "hidden" | "visible" | "collapse" | "collapsed"; width?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit | CoreTypes.LengthPercentUnit; }>; export interface ViewCommonAttributes extends TViewCommonAttributes { } export declare type TWebViewAttributes = Override<ViewAttributes, { android?: any; canGoBack?: boolean; canGoForward?: boolean; disableZoom?: string | boolean; ios?: any; onSrcChange?: (args: PropertyChangeData) => void; onDisableZoomChange?: (args: PropertyChangeData) => void; onLoadFinished?: (args: LoadEventData) => void; onLoadStarted?: (args: WebViewInterfacesLoadEventData) => void; src?: string; }>; export interface WebViewAttributes extends TWebViewAttributes { } export declare type TWrapLayoutAttributes = Override<LayoutBaseAttributes, { effectiveItemHeight?: number; effectiveItemWidth?: number; itemHeight?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; itemWidth?: string | number | "auto" | CoreTypes.LengthDipUnit | CoreTypes.LengthPxUnit; onItemHeightChange?: (args: PropertyChangeData) => void; onItemWidthChange?: (args: PropertyChangeData) => void; onOrientationChange?: (args: PropertyChangeData) => void; orientation?: "horizontal" | "vertical"; }>; export interface WrapLayoutAttributes extends TWrapLayoutAttributes { } export {};