/** * FloatingToolbar - Floating toolbar that appears near text selection * * This component renders a toolbar that floats above the current text selection * in the editor, providing quick access to formatting options. */ import React from 'react'; import type { Editor } from '@tiptap/react'; export interface FloatingToolbarProps { /** TipTap editor instance */ editor: Editor; /** Whether the toolbar should be visible */ visible: boolean; /** Position of the toolbar relative to editor container */ position: { top: number; left: number; }; /** Handler for inserting markdown */ onInsertMarkdown: (markdown: string, cursorOffset?: number) => void; /** Currently selected text */ selectedText?: string; /** Whether the editor is in editable mode */ editable: boolean; /** Whether to show download button */ showDownloadButton?: boolean; /** Handler for download action */ onDownloadAsMarkdown?: () => void; /** Handler for image source selection */ onImageSourceSelect?: (file: File) => string | Promise; } /** * FloatingToolbar component * * Renders a floating toolbar above the current text selection */ export declare const FloatingToolbar: React.ForwardRefExoticComponent>; //# sourceMappingURL=FloatingToolbar.d.ts.map