import { ListStruct, ItemStruct } from "../struct"; /** * Utility type that defines the structure of a condition element in a multi-step form. */ export type Condition = { type: "condition"; condition: { then: T["then"]; else: T["else"]; }; }; /** * Utility type that defines the structure of a loop element in a multi-step form. */ export type Loop = { type: "loop"; loop: { do: T; }; }; /** * Utility type that defines the structure of a switch element in a multi-step form. */ export type Switch = { type: "switch"; switch: { branches: T["branches"]; default: T["default"]; }; }; /** * Utility type that defines the structure of a jump element in a multi-step form. */ export type Jump = { type: "jump"; jump: { at: T; }; }; /** * Utility type that defines the structure of a form element in a multi-step form. */ export type Form> = { type: "form"; form: { fields: T; }; }; /** * Utility type that defines the structure of a variables element in a multi-step form. */ export type Variables> = { type: "variables"; variables: T; }; /** * Utility type that defines the structure of a yield element in a multi-step form. */ export type Yield = { type: "yield"; yield: { next: T["next"]; back: T["back"]; }; }; /** * Utility type that defines the structure of a return element in a multi-step form. */ export type Return = { type: "return"; return: T; }; //# sourceMappingURL=schema.d.ts.map