import * as React from "react"; import { EditorView } from "prosemirror-view"; import { Mark } from "prosemirror-model"; import theme from "../styles/theme"; import baseDictionary from "../dictionary"; export declare type SearchResult = { title: string; subtitle?: string; url: string; }; declare type Props = { mark?: Mark; from: number; to: number; tooltip: typeof React.Component | React.FC; dictionary: typeof baseDictionary; onRemoveLink?: () => void; onCreateLink?: (title: string) => Promise; onSearchLink?: (term: string) => Promise; onSelectLink: (options: { href: string; title?: string; from: number; to: number; }) => void; onClickLink: (href: string, event: MouseEvent) => void; onShowToast?: (message: string, code: string) => void; view: EditorView; theme: typeof theme; }; declare type State = { results: { [keyword: string]: SearchResult[]; }; value: string; previousValue: string; selectedIndex: number; }; declare class LinkEditor extends React.Component { discardInputValue: boolean; initialValue: string; initialSelectionLength: number; state: State; get href(): string; get suggestedLinkTitle(): string; componentWillUnmount: () => void; save: (href: string, title?: string | undefined) => void; handleKeyDown: (event: React.KeyboardEvent) => void; handleFocusLink: (selectedIndex: number) => void; handleChange: (event: any) => Promise; handlePaste: () => void; handleOpenLink: (event: any) => void; handleCreateLink: (value: string) => Promise | undefined; handleRemoveLink: () => void; handleSelectLink: (url: string, title: string) => (event: any) => void; moveSelectionToEnd: () => void; render(): JSX.Element; } declare const _default: React.ForwardRefExoticComponent, "mark" | "view" | "tooltip" | "ref" | "key" | "from" | "to" | "dictionary" | "onRemoveLink" | "onCreateLink" | "onSearchLink" | "onSelectLink" | "onClickLink" | "onShowToast"> & { theme?: any; }>; export default _default; //# sourceMappingURL=LinkEditor.d.ts.map