import { Dispatch } from 'react';
import { Point } from 'slate';
import type { IListMemberData } from '../../../../../discussion/shared';
import type { IEnrichedUrlData } from '../../../../../navigation';
import { ReportError, IMentionPopOver } from './../../rich-text-editor.types';
declare const RichTextEditorContext: import("react").Context<{
    /** The id of the editor */
    id: string;
    /** Whether the link editor is open */
    showLinkEditor: boolean;
    /** The data for the mention popover, including if it's showing, the selected user for the popover, and the possible users */
    mentionPopover: IMentionPopOver;
    /** The last anchor point (used for Slate to know where the cursor is) */
    lastAnchor: Point | null;
    /** Whether the editor is inside a modal, used to handle portals for focus trap */
    isInOverlay?: string | false | undefined;
    /** The data for the first link, to be displayed in the EnrichedUrl component. `undefined` is not set, `false` will not show the enriched url. (For cases where the user has manually removed it.) */
    enrichedUrl?: IEnrichedUrlData | false | undefined;
    /** An optional function to call when a mention is inserted */
    onMention?: ((value?: IListMemberData) => void) | undefined;
    /** The function to get metadata about a link */
    getLinkPreview?: ((url: string) => Promise<IEnrichedUrlData>) | undefined;
    /** The function to update the state */
    dispatch: Dispatch<any>;
    /** The function to report an error */
    reportError: ReportError;
}>;
export default RichTextEditorContext;
