import { type ComponentPropsWithoutRef, type ReactNode } from 'react'; import * as AccordionPrimitive from '@radix-ui/react-accordion'; import { type VariantProps } from 'class-variance-authority'; import { type StepSpec } from '../_shared/stepper'; export interface AccordionStepSpec extends StepSpec { /** Form content rendered inside the expanded panel. */ content: ReactNode; /** * One-line summary shown under the header when the step is completed * and its panel is collapsed. Typically a preview of the captured * data — "Mario Rossi · 12/03/1985". */ summary?: ReactNode; } declare const rootVariants: (props?: ({} & import("class-variance-authority/types").ClassProp) | undefined) => string; export interface StepperAccordionProps extends Omit, 'type' | 'value' | 'defaultValue' | 'onValueChange' | 'collapsible'>, VariantProps { /** Active step (0-indexed). The matching panel is the one that is open. */ activeStep: number; /** Step specs — each one provides its own content + optional summary. */ steps: AccordionStepSpec[]; /** * Fires when the user re-opens a completed step. Upcoming steps cannot * be activated — their triggers are disabled. The current step cannot * be collapsed (Radix `collapsible=false`). */ onStepChange?: (index: number) => void; /** Override the default `aria-label` on the list wrapper. */ 'aria-label'?: string; /** * Consumer-supplied instance id, surfaced as `data-component-id` so an * agent / UI bridge can address this instance. */ id?: string; } /** * Imperative handle for agent-readiness. Routes state mutations through * the consumer's `onStepChange`, never mutating directly. */ export interface StepperAccordionHandle { getCurrentStep: () => number; getTotalSteps: () => number; /** Indices of currently-open panels — singleton under Radix `type="single"`. */ getOpenSteps: () => number[]; gotoStep: (step: number) => void; next: () => void; previous: () => void; } declare const StepperAccordion: import("react").ForwardRefExoticComponent>; export { StepperAccordion }; //# sourceMappingURL=stepper-accordion.d.ts.map