import { default as React } from 'react'; import { default as FormLabel } from '../FormLabel/FormLabel'; type ProgressBarBaseProps = { /** Current progress that should be shown. Range from 0 - 100 */ percentage: number; /** Optional text below the ProgressBar */ helperText?: string; /** Optionally style the ProgressBar as an error */ error?: boolean; /** Optional prop to add a test id to the ProgressBar for QA testing */ qaTestId?: string; }; type FormLabelProps = React.ComponentProps; type ProgressBarWithLabel = ProgressBarBaseProps & { /** Optional label above the ProgressBar */ formLabelProps?: Omit & { showRightLabel?: boolean; }; }; type ProgressBarWithoutLabel = ProgressBarBaseProps & { formLabelProps?: never; showPercentageText?: never; }; export type ProgressBarProps = ProgressBarWithLabel | ProgressBarWithoutLabel; declare const ProgressBar: ({ percentage, formLabelProps, helperText, error, qaTestId, }: ProgressBarProps) => React.JSX.Element; export default ProgressBar;