import * as React from "react";
import { EditContextType } from "../client/editContext";
import type { SelectionRange } from "../client/editContext";
import type { FieldDescriptor } from "../../types";
export declare function CommentPopover({ children, editContext: externalEditContext, position, onClose, initialField, initialRange, }: {
    children?: React.ReactNode;
    editContext?: EditContextType;
    position?: {
        x: number;
        y: number;
    };
    onClose?: () => void;
    initialField?: FieldDescriptor;
    initialRange?: SelectionRange;
}): import("react/jsx-runtime").JSX.Element;
export declare const COMMENT_POPOVER_OVERLAY_ID = "comment-popover";
export declare function closeActiveCommentPopover(): void;
export declare function showCommentPopoverAt(position: {
    x: number;
    y: number;
}, editContext: EditContextType, options?: {
    field?: FieldDescriptor;
    range?: SelectionRange;
}): void;
export declare function showCommentPopoverForTrigger(trigger: Element | null | undefined, editContext: EditContextType, options?: {
    field?: FieldDescriptor;
    range?: SelectionRange;
}): void;
