import { AsElementProps, ElementProps, Size } from "../../../types/shared.mjs"; import { PolymorphicComponentProps } from "../../../internal/factory/create-polymorphic-factory.mjs"; import { HeadingProps } from "../../styles/typography/heading/Heading.mjs"; import { ListProps } from "../../styles/typography/list/List.mjs"; import { ErrorSummaryProps } from "./ErrorSummaryRoot.mjs"; import React from "react"; //#region src/components/form-elements/error-summary/ErrorSummary.d.ts type ErrorSummaryTitleProps = HeadingProps; declare const ErrorSummaryTitle: ((props: PolymorphicComponentProps) => React.ReactElement) & Omit & ElementProps<"h1"> & AsElementProps & Omit, "key" | "variant" | "as" | keyof React.HTMLAttributes | "size"> & { ref?: any; renderRoot?: (props: any) => any; }) | ({ size?: Size; variant?: "caption-bottom"; } & { className?: string; } & { children?: React.ReactNode | undefined; } & AsElementProps<"h1" | "h2" | "h3" | "h4" | "h5" | "h6"> & ElementProps<"h1"> & { as: keyof React.JSX.IntrinsicElements | React.JSXElementConstructor; renderRoot?: (props: Record) => any; })>, never> & Record; type ErrorSummaryBodyProps = ElementProps<'div'>; declare const ErrorSummaryBody: { ({ className, ...props }: ErrorSummaryBodyProps): React.JSX.Element; displayName: string; }; type ErrorSummaryListProps = ListProps; declare const ErrorSummaryList: { ({ className, ...props }: ErrorSummaryListProps): React.JSX.Element; displayName: string; }; type ErrorSummaryListItemProps = ElementProps<'a'>; declare const ErrorSummaryListItem: ((props: PolymorphicComponentProps) => React.ReactElement) & Omit & Omit, "key" | "as" | keyof React.AnchorHTMLAttributes> & { ref?: any; renderRoot?: (props: any) => any; }) | (ErrorSummaryListItemProps & { as: keyof React.JSX.IntrinsicElements | React.JSXElementConstructor; renderRoot?: (props: Record) => any; })>, never> & Record; declare const ErrorSummary: React.ForwardRefExoticComponent<{ disableAutoFocus?: boolean; } & ElementProps<"div"> & React.RefAttributes & AsElementProps & Record<`data-${string}`, unknown> & { renderRoot?: (props: Record) => React.ReactNode; }> & Record & { Title: ((props: PolymorphicComponentProps) => React.ReactElement) & Omit & ElementProps<"h1"> & AsElementProps & Omit, "key" | "variant" | "as" | keyof React.HTMLAttributes | "size"> & { ref?: any; renderRoot?: (props: any) => any; }) | ({ size?: Size; variant?: "caption-bottom"; } & { className?: string; } & { children?: React.ReactNode | undefined; } & AsElementProps<"h1" | "h2" | "h3" | "h4" | "h5" | "h6"> & ElementProps<"h1"> & { as: keyof React.JSX.IntrinsicElements | React.JSXElementConstructor; renderRoot?: (props: Record) => any; })>, never> & Record; Body: { ({ className, ...props }: ErrorSummaryBodyProps): React.JSX.Element; displayName: string; }; List: { ({ className, ...props }: ErrorSummaryListProps): React.JSX.Element; displayName: string; }; ListItem: ((props: PolymorphicComponentProps) => React.ReactElement) & Omit & Omit, "key" | "as" | keyof React.AnchorHTMLAttributes> & { ref?: any; renderRoot?: (props: any) => any; }) | (ErrorSummaryListItemProps & { as: keyof React.JSX.IntrinsicElements | React.JSXElementConstructor; renderRoot?: (props: Record) => any; })>, never> & Record; }; //#endregion export { ErrorSummary, ErrorSummaryBody, ErrorSummaryBodyProps, ErrorSummaryList, ErrorSummaryListItem, ErrorSummaryListItemProps, ErrorSummaryListProps, ErrorSummaryTitle, ErrorSummaryTitleProps };