import { Editor } from '@tiptap/react';
import { ChangeEvent, RefObject, SyntheticEvent } from 'react';
import { TBEditorTooltipCloseReason, TBEditorTooltipMode } from '../components/Tooltip';
interface IBEditorLinkTooltipState {
    editing: boolean;
    initialValue?: string;
    mode: TBEditorTooltipMode;
}
interface IUseBEditorLinkTooltipParams {
    editor: Editor | null;
    imageFileInputRef: RefObject<HTMLInputElement | null>;
    isReadonly: boolean;
    isTitleMode: boolean;
}
export declare function useBEditorLinkTooltip({ editor, imageFileInputRef, isReadonly, isTitleMode }: IUseBEditorLinkTooltipParams): {
    closeTooltip: (reason?: TBEditorTooltipCloseReason, target?: EventTarget | null) => void;
    editTooltip: () => void;
    handleImageFileChange: (event: ChangeEvent<HTMLInputElement>) => void;
    handleLinkClickCapture: (event: SyntheticEvent<HTMLDivElement>) => void;
    insertImage: () => void;
    insertLink: () => void;
    insertVideo: () => void;
    removeTooltipLink: () => void;
    submitTooltip: (value: string) => void;
    tooltipState: IBEditorLinkTooltipState | null;
};
export {};
