import { Definer } from '@react-form-builder/core'; import { ErrorWrapperProps } from '@react-form-builder/core'; import { JSX } from 'react/jsx-runtime'; /** * A wrapper component for displaying error messages in Mantine forms. * Combines native Mantine error display with the form builder error wrapper: * - Injects the error prop into the single child so Mantine controls show native error state (e.g. red border, error message). * - Optionally shows error text below the control for children that do not support the error prop or for a11y. * @param props the properties for the error wrapper component. * @param props.error the error text to display. * @param props.children the wrapped form control. * @param props.className optional CSS class name. * @returns the Stack containing the control (with error prop when possible) and optionally the error message. */ export declare const MtErrorWrapper: ({ error, children, className }: ErrorWrapperProps) => JSX.Element; export declare const mtErrorWrapper: Definer; export { }