import "./field_annotations.css"; import type * as React from "react"; import { useRender } from "@base-ui/react/use-render"; import { type StyleProps } from "./style_props"; /** One anatomy for every field surface. Always visible: a fault behind a disclosure is shipped. */ export interface FieldAnnotationProps { /** Persistent guidance, muted and never announced. As `FormField.description`. */ description?: string; /** A consequence to weigh: amber, announced, non-blocking. As `FormField.warning`. */ warning?: string; /** * Consumer-validated failure, announced as an alert. The `Inline*` editors render their own save * errors; do not wire both. */ error?: string; } /** An annotated row is taller, and its label must still centre on the control line. */ export declare function hasFieldAnnotation(props: FieldAnnotationProps): boolean; interface FieldAnnotationsProps extends FieldAnnotationProps, StyleProps { testID?: string; ref?: React.Ref; render?: useRender.RenderProp; /** Over flat text the control's inset would be pure indent, drifting the column. */ flat?: boolean; } /** `null` when there is nothing to say. Error, warning, then guidance; none suppresses another. */ export declare function FieldAnnotations({ error, warning, description, flat, testID, render, ref, ...props }: FieldAnnotationsProps): React.ReactElement> | null; export {};