import { CSSProperties } from 'react'; import './index.less'; export interface IProps { /** * @description 类名 * @default - */ className?: string; /** * @description 样式 * @default - */ style?: CSSProperties; /** * @description 内容 * @default - */ items: { label: string; key: string; children: any; }[]; /** * @description 滚动上边距 * @default - */ scrollMargin?: number; /** * @description 右侧工具栏自定义样式 * @default - */ rightToolbarStyle?: CSSProperties; /** * @description 进行定位滚动的目标容器,若不配置该属性,则点击的元素会自动定位到当前窗口的顶部 * @default - */ getScrollContainer?: () => HTMLElement | null; } export declare function Anchor(props: IProps): import("react/jsx-runtime").JSX.Element; export declare namespace Anchor { var Link: ({ children, targetId, className, style, onClick, title, getScrollContainer, scrollMargin }: { children: any; targetId: any; className?: string | undefined; style?: {} | undefined; onClick?: (() => void) | undefined; title?: string | undefined; getScrollContainer: any; scrollMargin: any; }) => import("react/jsx-runtime").JSX.Element; }