import { Primitive } from "../../utils/Primitive.js"; import { type ComponentPropsWithoutRef, type ComponentRef } from "react"; type SelectionInfo = { text: string; messageId: string; rect: DOMRect; }; export declare const useSelectionToolbarInfo: () => SelectionInfo | null; export declare namespace SelectionToolbarPrimitiveRoot { type Element = ComponentRef; type Props = ComponentPropsWithoutRef; } /** * A floating toolbar that appears when text is selected within a message. * * Listens for mouse and keyboard selection events, validates that the * selection is within a single message, and renders a positioned portal * near the selection. Prevents mousedown from clearing the selection. * * @example * ```tsx * * Quote * * ``` */ export declare const SelectionToolbarPrimitiveRoot: import("react").ForwardRefExoticComponent & import("react").HTMLAttributes & { asChild?: boolean; }, "ref"> & { render?: import("react").ReactElement | undefined; } & import("react").RefAttributes, "ref"> & import("react").RefAttributes>; export {}; //# sourceMappingURL=SelectionToolbarRoot.d.ts.map