import { ReactNode } from 'react'; import type { PreviewContext } from '../../infer.js'; export declare const useFormStepIndex: () => number | undefined; type FormStepProps = { index: number; /** * The composition node this step renders. * * Optional, but pass it in edit mode so the CMS editor can highlight this step. */ node?: { key: string; __context?: PreviewContext; }; children: ReactNode; }; /** * Renders one step of a multi-step form. Only the active step is visible. * * Inactive steps stay mounted behind `display: none` so that values already * entered survive stepping backwards and forwards, and so that submitting * validates every field rather than only the ones on screen. */ export declare function FormStep({ index, node, children }: FormStepProps): import("react").JSX.Element; export {};