import type { GraphEdit, InputPath, WorkflowEditing } from '../editing.js'; type Json = Record; /** * The wizard settings a list split into pages gets: what it had, and otherwise pages that can be * jumped between and, for the form itself, a Submit button. */ export declare function wizardSettings(list: unknown, submitLabel?: string): Json; /** * What splitting the form into pages adds besides its `$meta`: a wizard draws only its pages, so the * inputs outside one go into a first page, and a form with no pages gets one to show. */ export declare function firstPageEdits(editing: WorkflowEditing, inputs: unknown, title: string): GraphEdit[]; /** * The edits that split a list of inputs into pages: the form's (`parent` is `[]`), or those the group * or list at `parent` holds under `childKey`. Only the form's `$meta` is edited on its own, so a group's * or list's inputs are written whole. */ export declare function splitIntoPagesEdits(editing: WorkflowEditing, list: unknown, parent: InputPath, childKey: string | undefined, title: string, submitLabel?: string): GraphEdit[]; /** A page added after a wizard's last, titled by how many it then has. */ export declare function addPageEdit(editing: WorkflowEditing, list: unknown, parent: InputPath, title: (count: number) => string): GraphEdit; /** * What undoing pages adds besides dropping the wizard from `$meta`: each page's inputs go back where * the page was, in order, and the pages go. Moving them one by one refuses a name two pages share. */ export declare function pagesBackEdits(list: unknown, parent: InputPath): GraphEdit[]; /** The edits that turn a wizard back into a list of inputs drawn all at once. */ export declare function unsplitPagesEdits(list: unknown, parent: InputPath, childKey: string | undefined): GraphEdit[]; /** * A wizard step added where the inputs aren't a wizard comes as a wizard of its own: a group whose * fields are read as the form's own, holding the step. */ export declare function wizardGroupDefinition(label: string, title: string): Json; export {};