import type { MutableRefObject } from 'react'; type OptionsType = { mode?: 'query' | 'sessionStorage'; ready?: boolean; }; type TargetType = string | HTMLElement | Document | undefined | null | (() => T) | MutableRefObject; /** * 使用 scroll 定位页面位置 的 hook * @param {TargetType} target 支持 字符串 或者 Dom 元素 * @param {OptionsType} option * @returns */ export declare const useScrollToPosition: (target?: TargetType, options?: OptionsType) => { scrollToPosition: () => void; }; export {};