import { View } from 'react-native'; import { type TransitionStatus } from '../../internals/useTransitionStatus'; import type { SwitchRootState } from '../root/SwitchRoot'; import type { ZestUIComponentProps } from '../../types'; /** * The movable part of the switch that indicates whether the switch is on or off. * Renders a ``, or nothing when the switch is unchecked. * * Follows the animation contract: with `keepMounted`, the thumb stays mounted * while unchecked and publishes `transitionStatus` so the consumer can animate * it out. Without it, the thumb unmounts the moment it unchecks — React Native * cannot report when an exit animation finished. */ export declare function SwitchThumb(componentProps: SwitchThumb.Props): import("react").ReactElement> | null; export interface SwitchThumbState extends SwitchRootState { /** * The transition status of the thumb, for driving enter/exit animations. */ transitionStatus: TransitionStatus; } export interface SwitchThumbProps extends ZestUIComponentProps { /** * Whether to keep the element mounted when the switch is unchecked. * * Required to animate the thumb out; without it, it unmounts on uncheck. * @default false */ keepMounted?: boolean | undefined; } export declare namespace SwitchThumb { type State = SwitchThumbState; type Props = SwitchThumbProps; } //# sourceMappingURL=SwitchThumb.d.ts.map