import { FieldGroupApi, DeepKeysOfType, FieldGroupState, FieldsMap, FormAsyncValidateOrFn, FormValidateOrFn } from '@tanstack/form-core'; import { Component, JSX, ParentProps } from 'solid-js'; import { LensFieldComponent } from './createField.js'; import { AppFieldExtendedSolidFormApi } from './createFormHook.js'; /** * @private */ export type AppFieldExtendedSolidFieldGroupApi | FieldsMap, TOnMount extends undefined | FormValidateOrFn, TOnChange extends undefined | FormValidateOrFn, TOnChangeAsync extends undefined | FormAsyncValidateOrFn, TOnBlur extends undefined | FormValidateOrFn, TOnBlurAsync extends undefined | FormAsyncValidateOrFn, TOnSubmit extends undefined | FormValidateOrFn, TOnSubmitAsync extends undefined | FormAsyncValidateOrFn, TOnDynamic extends undefined | FormValidateOrFn, TOnDynamicAsync extends undefined | FormAsyncValidateOrFn, TOnServer extends undefined | FormAsyncValidateOrFn, TSubmitMeta, TFieldComponents extends Record>, TFormComponents extends Record>> = FieldGroupApi & NoInfer & { AppField: LensFieldComponent>; AppForm: Component; /** * A solid component to render form fields. With this, you can render and manage individual form fields. */ Field: LensFieldComponent; /** * A `Subscribe` function that allows you to listen and solid to changes in the form's state. It's especially useful when you need to execute side effects or render specific components in response to state updates. */ Subscribe: >>(props: { selector?: (state: NoInfer>) => TSelected; children: ((state: NoInfer) => JSX.Element) | JSX.Element; }) => JSX.Element; }; export declare function createFieldGroup | FieldsMap, TOnMount extends undefined | FormValidateOrFn, TOnChange extends undefined | FormValidateOrFn, TOnChangeAsync extends undefined | FormAsyncValidateOrFn, TOnBlur extends undefined | FormValidateOrFn, TOnBlurAsync extends undefined | FormAsyncValidateOrFn, TOnSubmit extends undefined | FormValidateOrFn, TOnSubmitAsync extends undefined | FormAsyncValidateOrFn, TOnDynamic extends undefined | FormValidateOrFn, TOnDynamicAsync extends undefined | FormAsyncValidateOrFn, TOnServer extends undefined | FormAsyncValidateOrFn, TComponents extends Record>, TFormComponents extends Record>, TSubmitMeta = never>(opts: () => { form: AppFieldExtendedSolidFormApi | AppFieldExtendedSolidFieldGroupApi, any, any, any, any, any, any, any, any, any, any, TSubmitMeta, TComponents, TFormComponents>; fields: TFields; defaultValues?: TFieldGroupData; onSubmitMeta?: TSubmitMeta; formComponents: TFormComponents; }): AppFieldExtendedSolidFieldGroupApi;