import type { DRefExtra } from '@react-devui/hooks/useRefExtra'; import React from 'react'; export interface DAnchorItem { href: string; title?: React.ReactNode; target?: string; children?: DAnchorItem[]; } export interface DAnchorRef { activeHref: string | null; updateAnchor: () => void; } export interface DAnchorProps extends Omit, 'children'> { dList: T[]; dPage?: DRefExtra; dDistance?: number | string; dScrollBehavior?: 'instant' | 'smooth'; dIndicator?: React.ReactNode | typeof DOT_INDICATOR | typeof LINE_INDICATOR; onItemClick?: (href: string, item: T) => void; } declare const DOT_INDICATOR: unique symbol; declare const LINE_INDICATOR: unique symbol; declare function Anchor(props: DAnchorProps, ref: React.ForwardedRef): JSX.Element | null; export declare const DAnchor: { (props: DAnchorProps & React.RefAttributes): ReturnType; DOT_INDICATOR: typeof DOT_INDICATOR; LINE_INDICATOR: typeof LINE_INDICATOR; }; export {};