import type { ReactElement } from 'react'; import type { ViewProps, ImageSourcePropType, ImageProps as RNImageProps } from 'react-native'; import type { SuccessVariant } from './StyledSuccess'; import type { ImageProps } from '../../Image'; import type { IllustrationName } from '../../Illustration'; interface SuccessProps extends ViewProps { /** * Image to be displayed. * @deprecated The `image` prop is deprecated and will be removed in the next major version. Use the `icon` prop instead. */ image?: ReactElement | ImageSourcePropType | string; /** * Success's title. */ title: string | ReactElement; /** * Success's description. */ description?: string | ReactElement; /** * Success's variant. */ variant?: SuccessVariant; /** * Action button text */ ctaText?: string; /** * Callback when the action button is pressed. */ onCtaPress?: () => void; /** * Secondary button text. */ secondaryCtaText?: string; /** * Callback when the secondary button is pressed. */ onSecondaryCtaPress?: () => void; /** * Testing id of the component. */ testID?: string; /** * Status icon to be displayed, this will replace the deprecated image prop. */ icon?: IllustrationName; } /** * Renders success page * * @param {SuccessProps} props * @return {*} {ReactElement} */ declare const Success: (props: SuccessProps) => ReactElement; export default Success;