| 1 |
/// <reference types="react" /> |
| 2 |
import { WizardStepType } from './types'; |
| 3 |
import { WizardStepProps } from './WizardStep'; |
| 4 |
/** |
| 5 |
* Accumulate list of step & sub-step props pulled from child components |
| 6 |
* @param children |
| 7 |
* @returns WizardStepType[] |
| 8 |
*/ |
| 9 |
export declare const buildSteps: (children: React.ReactNode) => WizardStepType[]; |
| 10 |
export declare function isWizardStep(child: any | React.ReactElement<WizardStepProps>): child is React.ReactElement<WizardStepProps>; |
| 11 |
export declare const normalizeStepProps: ({ children: _children, steps: _steps, ...controlStep }: WizardStepProps) => Omit<WizardStepType, 'index'>; |
| 12 |
/** |
| 13 |
* Determines whether a step is navigable based on disabled/hidden properties |
| 14 |
* @param steps All steps |
| 15 |
* @param step |
| 16 |
* @returns boolean |
| 17 |
*/ |
| 18 |
export declare const isStepEnabled: (steps: WizardStepType[], step: WizardStepType) => boolean; |
| 19 |
//# sourceMappingURL=utils.d.ts.map |