import type { Ref } from 'react'; import type { ForwardRefForwardPropsComponent } from '../../types'; import type { FieldGroupProps } from './FieldGroup'; export type FieldGroupListItemProps = FieldGroupProps & { /** The ID of the field group list item */ id: string; /** Item level onDelete callback. */ onDelete?: (id: string) => void; /** Indicates if the item is dynamic. */ isDynamic?: boolean; }; export interface FieldGroupListProps { items: FieldGroupListItemProps[]; contextualLabel?: string; label?: string; additionalContext?: string | JSX.Element; onAdd?: () => void; onDelete?: (id: string) => void; ref?: Ref; } export interface ListItemProps { item: FieldGroupListItemProps; index: number; isAddFocused: boolean; handleDelete: FieldGroupListProps['onDelete']; fieldGroupRef: (el: HTMLFieldSetElement | null) => void; } export declare const StyledListItem: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute, HTMLLIElement>, { depth: number; listGroupIndex: number; shouldHighlight: boolean; }>> & string; declare const FieldGroupList: ForwardRefForwardPropsComponent; export default FieldGroupList; //# sourceMappingURL=FieldGroupList.d.ts.map