/** * Values entered in the forms that are within a multi-step form. */ export type Inputs = ListInputs; /** * Union of `ControlInputs` and `FormInputs`. */ export type ItemInputs = ControlInputs | FormInputs; /** * Values entered in the forms that are within any flow control structure. */ export type ControlInputs = ListInputs | ConditionInputs | LoopInputs | SwitchInputs; /** * Values entered in the forms that are within a list. */ export type ListInputs = { type: "list"; list: { [position: number]: ItemInputs; }; }; /** * Values entered in the forms that are within a condition. */ export type ConditionInputs = { type: "condition"; then: { [position: number]: ItemInputs; }; else: { [position: number]: ItemInputs; }; }; /** * Values entered in the forms that are within a loop. */ export type LoopInputs = { type: "loop"; list: { [position: number]: ItemInputs; }; }; /** * Values entered in the forms that are within a switch. */ export type SwitchInputs = { type: "switch"; branches: { [position: number]: { [position: number]: ItemInputs; }; }; default: { [position: number]: ItemInputs; }; }; /** * Values entered in a form. */ export type FormInputs = { [key: string]: NameInputs; }; /** * Values entered in a single form field. */ export type NameInputs = { data: { here: true; data: unknown; } | { here: false; }; keys: { [key: PropertyKey]: NameInputs; }; }; //# sourceMappingURL=inputs.d.ts.map