import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; import type { NumberFieldRootState } from './NumberFieldRoot'; /** * Shared implementation of the increment and decrement buttons. They differ only * in which way they step and which boundary (`max` vs `min`) disables them. * * Holding the button steps repeatedly, as on the web. Upstream builds that on * `usePressAndHold`, which tracks pointer movement to tell a hold from a scroll; * React Native's `Pressable` already cancels a press that turns into a scroll and * calls `onPressOut`, so a timeout and an interval are the whole mechanism here. */ export declare function useNumberFieldStepperButton(componentProps: NumberFieldStepperButtonProps, isIncrement: boolean): React.ReactElement>; export interface NumberFieldStepperButtonState extends NumberFieldRootState { /** * Whether the button is currently pressed. */ pressed: boolean; } export interface NumberFieldStepperButtonProps extends ZestUIComponentProps { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; } //# sourceMappingURL=useNumberFieldStepperButton.d.ts.map