import * as React from 'react'; export type WizardStepDef = { /** Stable id for the step. */ id: string; /** Short label shown in the stepper. */ title: React.ReactNode; /** Optional supporting text. */ description?: React.ReactNode; /** Optional step may be skipped by navigation helpers. */ optional?: boolean; }; export type WizardContextValue = { steps: WizardStepDef[]; /** Zero-based index of the active step. */ index: number; current: WizardStepDef; isFirst: boolean; isLast: boolean; /** Steps the user has advanced past (marked complete). */ completed: Set; /** Advance one step; runs the step guard first if provided. */ next: () => Promise; /** Go back one step. No-op on the first step. */ back: () => void; /** * Jump to a step by index or id. Forward jumps run intermediate guards * unless `force` is set. */ goTo: (target: number | string, force?: boolean) => Promise; /** Reset to the first step and clear completion. */ reset: () => void; }; /** Access the enclosing wizard. Throws if used outside a ``. */ export declare function useWizard(): WizardContextValue; /** * A per-step guard. Return false (or a rejected/false promise) to block * advancing past the step — e.g. run form validation here. */ export type WizardGuard = (fromIndex: number, toIndex: number) => boolean | Promise; export type WizardProviderProps = { steps: WizardStepDef[]; /** Uncontrolled starting index. Defaults to 0. */ defaultIndex?: number; /** Controlled active index. */ index?: number; onIndexChange?: (index: number) => void; /** Guard invoked before every forward transition. */ guard?: WizardGuard; /** Fired when the last step is completed via `next()`. */ onComplete?: () => void; children: React.ReactNode; }; export declare function WizardProvider({ steps, defaultIndex, index: controlledIndex, onIndexChange, guard, onComplete, children, }: WizardProviderProps): React.JSX.Element; //# sourceMappingURL=wizard-context.d.ts.map