import { WizardStepDefinition } from "../../form/types.js"; //#region src/components/shared/utils/stepState.d.ts /** * Shared utility for calculating step state in wizard navigation * Reduces code duplication between mobile and desktop renderers */ interface StepState { canNavigate: boolean; isActive: boolean; isCompleted: boolean; isDisabled: boolean; step: WizardStepDefinition; } /** * Calculate the state of a step at the given index */ declare function calculateStepState(index: number, current: number, total: number, allowNavigation: boolean, disabledSteps: number[], steps: WizardStepDefinition[]): StepState; /** * Create a step click handler that validates navigation permissions */ declare function createStepClickHandler(index: number, allowNavigation: boolean, disabledSteps: number[], current: number, steps: WizardStepDefinition[], onStepClick?: (stepIndex: number) => void): () => void; /** * Resolves whether step navigation is allowed based on step-level and wizard-level configurations * @param wizardLevelConfig - Wizard-level navigation permission (boolean or function) * @param steps - Array of wizard step definitions * @param currentStep - Current step index (1-indexed) * @returns Boolean indicating if step navigation is allowed */ declare function resolveAllowStepNavigation(wizardLevelConfig: boolean | (() => boolean) | undefined, steps: WizardStepDefinition[], currentStep: number): boolean; /** * Create keyboard event handler for step navigation */ declare function createStepKeyHandler(index: number, allowNavigation: boolean, disabledSteps: number[], current: number, steps: WizardStepDefinition[], onStepClick?: (stepIndex: number) => void): (e: React.KeyboardEvent) => void; //#endregion export { StepState, calculateStepState, createStepClickHandler, createStepKeyHandler, resolveAllowStepNavigation }; //# sourceMappingURL=stepState.d.ts.map