import React from 'react'; import '../../styles/base.module.css'; export declare enum StepState { available = 0, completed = 1, disabled = 2, attention = 3, paused = 4 } export type StepProps = { /** * The label of the step */ label: string; /** * The language of the step */ language?: Language; /** * The index of the step */ index: number; /** * A callback function for custom action on step click */ onStepClick?: (event: React.MouseEvent, stepIndex: number) => void; /** * A function for rendering a custom aria-label for step's state */ renderCustomStateAriaLabel?: (stepIndex: number, state: StepState) => string; /** * A function for rendering a custom step count label */ renderCustomStepCountLabel?: (stepIndex: number, totalNumberOfSteps: number) => string; /** * A boolean indicating whether step is in selected state */ selected?: boolean; /** * A boolean indicating whether small variant is used */ small?: boolean; /** * The state of the step */ state: StepState; /** * The total number of steps */ stepsTotal: number; } & React.ComponentProps<'button'>; type Language = 'en' | 'fi' | 'sv' | string; export declare const Step: ({ label, language, index, renderCustomStepCountLabel, small, state, selected, stepsTotal, renderCustomStateAriaLabel, onStepClick, ref, ...rest }: StepProps) => React.JSX.Element; export {};