import { Animated, ViewStyle, ImageStyle, TextStyle, StyleProp } from 'react-native'; import { AnimatedStyle, EasingFunction } from 'react-native-reanimated'; import { PressableRippleProps } from '../modules/PressableRipple/type'; export declare function useAnimateColor(value: string, opts?: Partial): Animated.AnimatedInterpolation; type SelectProperties, K extends keyof T> = { [P in K]: T[K]; }; export declare function useStaticAnimationStyles, K extends keyof T>(obj: T, keys: K[]): SelectProperties; type AnimatableProperties = 'scale' | 'scaleX' | 'scaleY' | 'translateX' | 'translateY' | 'opacity' | 'backgroundColor'; type VariantTransitionConfig = { type: 'timing'; duration?: number; easing?: EasingFunction; }; export type TransitionConfig = Partial> | VariantTransitionConfig; type UseAnimatedVariantStylesConfig, K extends keyof T> = { variantStyles: T; animatedProperties: K[]; updater: (states: SelectProperties) => AnimatedStyle; transition?: TransitionConfig; dependencies?: any[]; }; export declare function useAnimatedVariantStyles, K extends keyof T>(config: UseAnimatedVariantStylesConfig): {}; export type FeedbackConfig = { type: 'opacity'; value?: number; } | { type: 'highlight'; color?: string; brightness?: number; shiftOpacity?: number; } | { type: 'styles'; styles: StyleProp; } | { type: 'none'; }; type RippleConfig = { type: 'ripple'; config?: PressableRippleProps; iosFallback?: FeedbackConfig; }; /** On iOS `ripple` is not supported by the native layer; the `iosFallback` config is substituted automatically inside `getFeedbackStyle` so callers do not need platform guards at the call site. */ export type TouchableFeedbackConfig = RippleConfig | FeedbackConfig; export type TouchFeedbackConfig = { type?: 'ripple' | 'opacity' | 'highlight' | 'styles' | 'none'; config?: PressableRippleProps; iosFallback?: FeedbackConfig; value?: number; brightness?: number; shiftOpacity?: number; styles?: StyleProp; }; export type UsePressableFeedbackConfig = { disabled?: boolean; feedbackConfig?: TouchableFeedbackConfig; hightlightPropertyIn: 'backgroundColor' | 'borderColor' | 'color'; hightlightPropertyOut: 'backgroundColor' | 'borderColor' | 'color'; }; export declare function usePressableFeedback(styles: any, config: UsePressableFeedbackConfig): { getFeedbackStyle: (pressed: boolean) => any; rippleConfig: any; }; export declare function useBackButton(cb: () => boolean | void, deps?: never[]): void; /** Merges keyboard height into `paddingBottom` rather than adjusting layout height or using `KeyboardAvoidingView` because padding-based adjustment composites cleanly with existing scroll content insets and does not cause a layout jump on Android. */ export declare function useKeyboardPaddingStyle(styles: ViewStyle[], enabled?: boolean): {}; export {}; //# sourceMappingURL=hooks.d.ts.map