export interface LinkEditorApplyValue { href: string; text?: string; openInNewTab: boolean; } export interface LinkEditorPopoverProps { x: number; y: number; initialHref?: string; initialText?: string; initialOpenInNewTab?: boolean; showTextInput?: boolean; showOpen?: boolean; showRemove?: boolean; /** Defaults to true (the original toolbar-Link-button behavior: the user asked to edit, so jump straight to the href field). Pass false when the popover opened itself just because the caret entered a link - autofocusing there would steal focus from the editor on every ordinary click/caret-move, trapping the cursor the overlay exists specifically to avoid. */ autoFocus?: boolean; onApply: (value: LinkEditorApplyValue) => void; onOpen?: () => void; onRemove?: () => void; onCancel: () => void; } export declare function LinkEditorPopover({ x, y, initialHref, initialText, initialOpenInNewTab, showTextInput, showOpen, showRemove, autoFocus, onApply, onOpen, onRemove, onCancel, }: LinkEditorPopoverProps): import("react/jsx-runtime").JSX.Element;