import type { ImageStyle, StyleProp, ViewStyle } from 'react-native'; import { MessageBubbleType, MessageLayoutType } from '../biz/types'; import { type CornerRadiusPalette, type CornerRadiusPaletteType } from '../theme'; type SizeType = { height?: number | string | undefined; width?: number | string | undefined; }; /** * Parse the size in the component properties. * @example * * ```tsx * const { getStyleSize } = useGetStyleProps(); * const { width: propsWidth } = getStyleSize(containerStyle); * const { checkType } = useCheckType(); * if (propsWidth) { * checkType(propsWidth, 'number'); * } * const getUnitSize = () => { * if (propsWidth) { * return (propsWidth as number) / countPerRow - 1; * } * return winWidth / countPerRow - 1; * }; * ``` */ export declare function useGetStyleProps(): { getMessageBubbleBorderRadius: (params: { height: number; layoutType: MessageLayoutType; messageBubbleType: MessageBubbleType; hasTopNeighbor: boolean; hasBottomNeighbor: boolean; }) => { borderRadius: any; borderTopStartRadius?: undefined; borderTopEndRadius?: undefined; borderBottomStartRadius?: undefined; borderBottomEndRadius?: undefined; } | { borderTopStartRadius: any; borderTopEndRadius: any; borderBottomStartRadius: any; borderBottomEndRadius: any; borderRadius?: undefined; }; getStyleProp: (prop: string, style?: StyleProp) => any; getStyleSize: (style?: StyleProp) => SizeType; getBorderRadius: (params: { height: number; crt: CornerRadiusPaletteType; cr: CornerRadiusPalette; style?: StyleProp; }) => any; }; export declare function getPropValueFromStyleT