import { type ComponentType, type ReactNode } from 'react'; /** Editing controls a form builder wraps around rendered fields. */ export interface FormEditing { /** Input path of the fields being rendered; empty at the top level. */ parent: string[]; Row: ComponentType<{ path: string[]; /** The field isn't drawn, such as one marked hidden. */ hidden?: boolean; /** The field's name in the form's values, which tells one input's copies in a list's rows apart. */ instance?: string; children?: ReactNode; }>; Add: ComponentType<{ parent: string[]; }>; } export declare const FormEditingContext: import("react").Context; export declare function useFormEditing(): FormEditing | null; /** Fields rendered inside `children` belong to the input at `path`. */ export declare function EditingScope({ editing, path, children, }: { editing: FormEditing | null; path: string[] | null; children: ReactNode; }): string | number | bigint | boolean | import("react").JSX.Element | Iterable | Promise | import("react").ReactElement> | import("react").ReactPortal | null | undefined> | null | undefined;