import type { ReactNode } from 'react'; import type { Validity } from '../../core/types/validity.js'; /** * Everything a navigation entry needs to render a visual state. * @internal */ export type StepperNavigationAppearance = { /** * Button color of the item. Only the current step gets a colored item, so * the color reads purely as "you are here" and is critical when that step * also has an error. */ itemColor: 'neutral' | 'primary' | 'critical'; /** * `fieldTokens` color and variant of the step indicator. */ indicator: { color: 'neutral' | 'primary' | 'success' | 'critical'; variant: 'emphasized' | 'accent'; }; /** * Icon shown in the indicator. Without one, the indicator shows the step * number. */ icon: ReactNode; }; /** * Returns how a step's navigation entry looks, given its validity and whether * it is the current step. * @internal */ export declare function getStepperNavigationAppearance(validity: Validity | undefined, isCurrent: boolean): StepperNavigationAppearance; /** * Returns the visually hidden text announcing a step's validation state, or * `null` when the state needs no announcement. * @internal */ export declare function getStepperNavigationStateLabel(validity: Validity | undefined): ReactNode; //# sourceMappingURL=stepper-utils.d.ts.map