import type { FactoryPayload } from '../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib' import type { EmotionSx } from '@mantine/emotion' import type { EmotionStyles } from '../emotion/index.mjs' import type { ShadingColor } from '../theme/colors.mjs' import type { Color } from '../theme/theme.mjs' declare module '../../node_modules/.pnpm/@mantine_core@7.17.8_patch_hash_3qirwkgu3wxhvd6hnr2gb24yzq_@mantine_hooks@7.17.8_react@18.3.1_e5yvlgwhmeykc75dkphi7jou6q/node_modules/@mantine/core/lib' { interface MantineThemeColorsOverride { colors: Record } interface StylesApiPropsOverride { styles?: EmotionStyles } interface BoxProps { sx?: EmotionSx } } declare module '@mantine/core' { interface MantineThemeColorsOverride { colors: Record } interface StylesApiPropsOverride { styles?: EmotionStyles } interface BoxProps { sx?: EmotionSx } } import { DefaultValues, UseFormReturn, Mode, UseFormProps, SubmitHandler, FieldValues } from 'react-hook-form'; import { BoxProps, ElementProps } from '../../primitive/index.mjs'; import { FormActions, FormActionsProps } from './FormActions.mjs'; import { FormErrorMessage, FormErrorMessageProps } from './FormErrorMessage.mjs'; import { FormLayout, FormLayoutProps, FormLayoutType } from './FormLayout.mjs'; export interface FormProps extends BoxProps, Omit, 'onSubmit'> { errorMessage?: string; formMode?: Mode; reValidateMode?: UseFormProps['reValidateMode']; defaultValues?: DefaultValues; form?: UseFormReturn; withActions?: boolean; actionsProps?: FormActionsProps; errorMessageProps?: Omit; layout?: FormLayoutType; layoutProps?: Omit; stopPropagation?: boolean; preventDefault?: boolean; onSubmit: SubmitHandler; onRefresh?: () => void; onError?: () => any; onCancel?: () => void; onFormUnMount?: () => void; } declare const _Form: ({ children, form, formMode, reValidateMode, defaultValues, onSubmit, onFormUnMount, onCancel, withActions, actionsProps, errorMessageProps, layout, layoutProps, onError, stopPropagation, preventDefault, ...rest }: FormProps) => import("react/jsx-runtime.js").JSX.Element; type FormType = typeof _Form; export declare const Form: FormType & { Actions: typeof FormActions; ErrorMessage: typeof FormErrorMessage; Layout: typeof FormLayout; }; export {};