import type { LayoutChangeEvent, Animated } from 'react-native'; import type { ButtonWidth } from './types'; declare const getNextStateWidth: (currentWidth: number | null, nextWidth: number) => number; declare const useAutoWidth: ({ animatedOpacity, stretch, width, }: { animatedOpacity: Animated.Value; stretch?: boolean; width?: ButtonWidth; }) => { measuredWidth: number | null; onTextLayout: (event: LayoutChangeEvent) => void; stateWidth: number | null; }; export default useAutoWidth; export { getNextStateWidth }; //# sourceMappingURL=useAutoWidth.d.ts.map