import type { AnchorHTMLAttributes, FC, MouseEventHandler } from 'react';
import { AnimateConfig } from './helpers';
export interface ScrollchorProps extends Omit, 'href' | 'onClick'> {
/**
* The anchor (id) to which this link should scroll to, leading # will be stripped
*/
to: string;
/**
* The element scrolling will be performed on when clicked, leading # will be stripped
*
* Defaults to to scrolling both the `` and `` elements of the page
*/
target?: string;
/**
* Smooth scrolling animation can be customized using this prop
*
* Some pre-defined easing functions are available in the `lib/easing` file
*
* @example ```
* { offset: 0, duration: 400, easing: easeOutQuad }
* ```
*/
animate?: Partial;
/**
* Callback function triggered before scroll to #hash
*/
beforeAnimate?: MouseEventHandler;
/**
* Callback function triggered after scroll to #hash
*/
afterAnimate?: MouseEventHandler;
/**
* Enable/disable updating the browser history with scroll behaviours
*
* Default to `false`
*/
disableHistory?: boolean;
}
export declare const Scrollchor: FC;