import { type RefAttributes, ReactElement } from 'react'; import Anchor from './Anchor'; import type { AnchorPropsWithAnchors, AnchorPropsWithChildren } from './Anchor'; type AnchorElement = ReactElement; type AnchorChildren = AnchorElement | AnchorElement[]; export type AnchorGroupPropsWithAnchors = AnchorPropsWithAnchors; export interface AnchorGroupPropsWithChildren { anchors?: never; children: AnchorChildren; } type AnchorGroupBaseProps = AnchorGroupPropsWithAnchors | AnchorGroupPropsWithChildren; export type AnchorGroupProps = AnchorGroupBaseProps & { className?: string; }; /** * The `mezzanine` AnchorGroup component renders a group of anchor links, * configured via an `anchors` prop or parsed from `Anchor` child components. * * ```tsx * * Section 1 * Section 2 * * ``` * * ```tsx * * ``` */ declare function AnchorGroup({ ref, ...props }: AnchorGroupProps & RefAttributes): import("react/jsx-runtime").JSX.Element; export default AnchorGroup;