/** * 用于监听当前页面到达哪一个锚点 * @param dataSource 数据源 * @param container 函数,返回监听容器 * @param cb 锚点改变时触发 * @param external 放置额外参数,例如 offsetY */ export declare const startListen: (dataSource: any, container: any, cb: any, external: { offsetY: number; }, doNotUpdate?: boolean) => void; export declare const setEventHandlerForContainer: (dataSource: any, container: any, cb: any, external: any) => void; /** * 解除 startListen 带来的监听功能 */ export declare const removeListen: (dataSource: any, container: any) => void; /** * 获取节点已经滚动的距离 */ export declare function getScroll(node: any, isVertical: any): any; /** * 滚动时触发,判断所有在页面中的节点中的”第一个“,并通过 cb 返回此 htmlId */ export declare const updateNodePosition: any; /** * 用于在特定容器内跳转到对应的锚点位置 * 增加 offsetY,用于跳转的偏移,防止部分元素 fixed 遮挡锚点 */ export declare const jumpToNode: (htmlId: any) => void;