import type { ForwardRefExoticComponent, MouseEvent, RefAttributes } from 'react';
import type { WithContextProps } from '@atlaskit/analytics-next/withAnalyticsContext';
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
import type { OnDropdownChange } from './Dropdown';
export interface OverlayButtonProps {
    editorView: EditorView;
    /**
     * Called when the dropdown is open/closed with isOpen state as true and false respectively.
     */
    onDropdownChange?: OnDropdownChange;
    /**
     * Called when the open link button in the dropdown is clicked.
     */
    onOpenLinkClick?: (event: MouseEvent<HTMLAnchorElement>) => void;
    targetElementPos?: number;
    testId?: string;
}
export declare const OverlayButton: ForwardRefExoticComponent<OverlayButtonProps & WithContextProps & RefAttributes<unknown>>;
