import { ReactNode } from 'react'; export interface IScrollSpyProps { elements?: Readonly; initialActive?: string; options?: IntersectionObserverInit; } export interface IScrollSpyApi { scrollToElement: (item?: string) => void; currentActive: string; setRef: (ref: HTMLElement) => void; } export declare function useScrollSpy(props?: IScrollSpyProps): IScrollSpyApi; interface IScrollSpyComponentProps extends IScrollSpyProps { children?: (params: IScrollSpyApi) => ReactNode; } export declare function ScrollSpy({ elements, children }: IScrollSpyComponentProps): ReactNode; export {}; //# sourceMappingURL=ScrollSpy.d.ts.map