import type { ReactNode } from 'react'; export interface Step { /** What this step is for, in the words the screen uses elsewhere. */ name: string; /** * The small line over the name — its rank in the sequence, said in words. * * The words are the caller's, because they are copy and this package ships * none. A wizard that numbered its own steps would be writing English into * every language. */ note?: ReactNode; /** * True once the step's answers are all given. * * Not the same question as "is it behind the one in hand". A person can be * sent back to fix an answer three steps along, and every step after the one * they are on is still answered — so position says where you are and this * says what is settled. Drawn in the number: the disc carries three rungs, * and answered reads quieter than the step in hand and louder than one * nobody has reached. */ done?: boolean; } export declare function Wizard({ trail, title, steps, now, go, aside, top, children, }: { /** * Where this came from, named. * * A rendered trail rather than a route and a word: navigation is the * application's, and a component that took an href would need the * application's router to follow it. A wizard with no way back is a trap, so * pass one. */ trail?: ReactNode; title: ReactNode; steps: readonly Step[]; /** Which step is being worked, counting from zero. */ now: number; /** * Back to a step already worked. * * The list is the map of the task, so it is also the way through it: a step * behind the one in hand becomes the control that returns to it. Absent, the * list is a list. Nothing ahead is ever pressable — a step is reached by * answering the one before it, which is what makes it a step. */ go?: (step: number) => void; /** The controls that belong to the task rather than to a step — a reset, a * version, a setting. Top right, out of the reading order of the work. */ aside?: ReactNode; /** * How far down the page the list of steps comes to rest. * * The height of whatever the application floats over its own scroll, which is * a fact about the page rather than about the task — so it is given rather * than guessed. Left unsaid the list rests against the top of the viewport, * which is right for a page with nothing floating over it. */ top?: number; children: ReactNode; }): import("react").JSX.Element; //# sourceMappingURL=wizard.d.ts.map