import type { Ref } from 'vue'; export interface StepDefinition { completed: boolean; substeps: Array>; } export interface StepperOptions { /** * If true, the stepper will prevent skipping steps */ linear?: boolean; /** * The index of the active step */ activeStep?: number; /** * The index of the active substep */ activeSubstep?: number; /** * The stepper representation as an array of steps and substeps */ steps?: Array; /** * A ref to the stepper element */ ref?: Ref; } export default function useStepper(options?: StepperOptions): { steps: Readonly>; stepCount: import("vue").ComputedRef; activeStepElement: import("vue").ComputedRef; activeStepIndex: Ref; activeSubstepIndex: Ref; registerStep: (nested?: boolean) => void; next: () => void; back: () => void; goTo: (stepIndex: number, substepIndex?: number) => void; isStepActive: (stepIndex: number, substepIndex?: number) => boolean; isStepCompleted: (stepIndex: number, substepIndex?: number) => boolean; };