import { StepperItemProps } from "./StepperItem.cjs"; import { Key, ReactNode } from "react"; export interface StepperProps { /** * The steps, as `` children. Order is JSX order. */ children: ReactNode; /** * The step the user is on. (controlled) */ selectedKey?: Key; /** * The step to start on. (uncontrolled) * @default the first item's id */ defaultSelectedKey?: Key; /** * Handler that is called when the user activates a selectable step. */ onSelectionChange?: (key: Key) => void; /** * The steps that are done. A set, not a high-water mark, so non-contiguous * completion is expressible. Never inferred by the component. */ completedKeys?: Iterable; /** * The steps that failed. Selectable by default, so the user can go back and * fix them, unless `selectableKeys` is given: that replaces the default rule * outright and an errored key left out of it is no longer reachable. */ errorKeys?: Iterable; /** * The steps that are unavailable. Never selectable, whatever else says. */ disabledKeys?: Iterable; /** * The steps the user may jump to. Replaces the default rule * (`completedKeys` + `errorKeys` + the selected step) entirely. */ selectableKeys?: Iterable; /** * Renders markers only, keeping the labels for screen readers. Use it when * there are too many steps for labels to fit. * @default false */ hideLabels?: boolean; /** * Selects a themed appearance. * @default 'default' */ variant?: 'default' | (string & {}); /** * Selects a themed size. * @default 'default' */ size?: 'default' | (string & {}); /** * Labels the navigation landmark. * @default a localized "Progress" */ 'aria-label'?: string; } declare const Stepper: { ({ children, selectedKey: selectedKeyProp, defaultSelectedKey, onSelectionChange, completedKeys, errorKeys, disabledKeys, selectableKeys, hideLabels, variant, size, "aria-label": ariaLabel }: StepperProps): import("react").JSX.Element | null; Item: (_: StepperItemProps) => null; }; export { Stepper };