import { type HTMLAttributes } from "react";
import { type PropsWithRef } from "../types.js";
import { type FormMessageProps } from "./types.js";
/**
 * @since 2.5.0
 */
export interface FormMessageContainerProps extends HTMLAttributes<HTMLDivElement> {
    /**
     * If the extension doesn't actually want to render the `FormMessage`
     * component, these props are optional. It kind of eliminates the whole
     * purpose of this component though.
     */
    messageProps?: PropsWithRef<FormMessageProps, HTMLDivElement>;
}
/**
 * **Server Component**
 * Conditionally wraps the `children` in a `.rmd-form-message-container` wrapper
 * and renders the {@link FormMessage} component.
 *
 * @since 2.5.0
 */
export declare const FormMessageContainer: import("react").ForwardRefExoticComponent<FormMessageContainerProps & import("react").RefAttributes<HTMLDivElement>>;
