import { PropsWithChildren } from 'react'; import { WithStyledProps } from '@mapples/style'; import { ViewProps } from 'react-native'; /** * Props for the FormView component. * * @public */ export type FormViewProps = PropsWithChildren> & { /** Initial field values passed to the underlying form context. */ initialValues?: any; /** Callback invoked with the form's collected values when the form is submitted. */ onSubmit?: (values: any) => void; }; /** * A form container component that provides a shared form context to its children. * * Wraps React Native's View with the `@mapples/form` Form provider, enabling * nested fields (such as {@link TextField}) and submit controls (such as * {@link SubmitButton}) to participate in a single form lifecycle. Additional * styling is applied via the `@mapples/style` styled-props system. * * @example * ```tsx * console.log(values)} * styled={{ * style: { * padding: 16, * gap: 12, * } * }} * > * * * * ``` * * @public */ declare const FormView: import("react").ForwardRefExoticComponent<{ styled?: import("@mapples/style").StyledProps> | undefined; } & ViewProps & { children?: import("react").ReactNode | undefined; } & { /** Initial field values passed to the underlying form context. */ initialValues?: any; /** Callback invoked with the form's collected values when the form is submitted. */ onSubmit?: (values: any) => void; } & import("react").RefAttributes>; export default FormView; //# sourceMappingURL=FormView.d.ts.map