import { Dispatch, MutableRefObject, SetStateAction } from 'react'; import type { NativeSyntheticEvent, Animated, ScaledSize } from 'react-native'; export type LabelContextValue = MutableRefObject<{ triggerChange: (evt: NativeSyntheticEvent) => void; }>; export type KeyboardAvoidContextValue = MutableRefObject<{ cursorSpacing: number; ref: MutableRefObject; adjustPosition: boolean; holdKeyboard?: boolean; keyboardHeight?: number; /** @internal bindfocus 异步延迟上报方法 */ onKeyboardShow?: () => void; /** @internal 多个 Input 切换聚焦场景标记位 */ readyToShow?: boolean; } | null>; export interface GroupValue { [key: string]: { checked: boolean; setValue: Dispatch>; }; } export interface GroupContextValue { groupValue: GroupValue; notifyChange: (evt: NativeSyntheticEvent) => void; } export interface FormFieldValue { getValue: () => any; resetValue: ({ newVal, type }: { newVal?: any; type?: string; }) => void; } export interface FormContextValue { formValuesMap: Map; submit: () => void; reset: () => void; } export interface IntersectionObserver { [key: number]: { throttleMeasure: () => void; }; } export interface PortalContextValue { mount: (children: React.ReactNode, key?: number | null, id?: number | null) => number | undefined; update: (key: number, children: React.ReactNode) => void; unmount: (key: number) => void; } export interface ScrollViewContextValue { gestureRef: React.RefObject | null; scrollOffset: Animated.Value | null; } export interface RouteContextValue { pageId: number; navigation: Record; } export interface DimensionsValue { window: ScaledSize; screen: ScaledSize; } export interface StickyContextValue { registerStickyHeader: Function; unregisterStickyHeader: Function; } export declare const MovableAreaContext: import("react").Context<{ width: number; height: number; }>; export declare const FormContext: import("react").Context; export declare const CheckboxGroupContext: import("react").Context; export declare const RadioGroupContext: import("react").Context; export declare const LabelContext: import("react").Context; export declare const PickerContext: import("react").Context; export declare const VarContext: import("react").Context<{}>; export declare const IntersectionObserverContext: import("react").Context; export declare const RouteContext: import("react").Context; export declare const SwiperContext: import("react").Context<{}>; export declare const KeyboardAvoidContext: import("react").Context; export declare const ScrollViewContext: import("react").Context; export declare const PortalContext: import("react").Context; export declare const StickyContext: import("react").Context; export declare const ProviderContext: import("react").Context;