import { default as React } from 'react'; /** Base properties for the Stepper component */ type StepperPropsBase = { /** Array of strings which represent each step title */ steps: string[]; /** Indicates current step number. Starts from 1 */ currentStep: number; /** Optionally hide the "Step" text */ hideStepText?: boolean; /** Optionally hide the Back button */ hideBackButton?: boolean; /** Optional prop to add a test id to the Stepper for QA testing */ qaTestId?: string; }; /** * If `hideBackButton` is `true`, `callout` should not be provided. * If `hideBackButton` is `false` or not provided, `callout` is required. */ export type StepperProps = StepperPropsBase & ({ hideBackButton: true; /** Callout for the back button. Required if the back button is not hidden. */ callout?: never; } | { hideBackButton?: false; /** Callout for the back button. Required if the back button is not hidden. */ callout: (currentStep: number) => void; }); declare const Stepper: ({ steps, currentStep, callout, hideStepText, hideBackButton, qaTestId, }: StepperProps) => React.JSX.Element; export default Stepper;