import { Ctx } from '@milkdown/kit/ctx'; import { ReactNode } from 'react'; export declare const EMBED_TOOLTIP_NAME = "embed-tooltip"; /** * Configuration for an embed type */ export interface EmbedConfig { /** Display name shown in tooltip header */ label: string; /** Icon component to show in header */ icon: ReactNode; /** Placeholder text for the input */ placeholder: string; /** Validates if the URL is valid for this embed type */ isValidUrl: (url: string) => boolean; /** Error message when URL is invalid */ invalidUrlMessage: string; } /** * Create the tooltip plugin using Milkdown's tooltipFactory */ export declare const embedTooltip: import('@milkdown/plugin-tooltip').TooltipPlugin<"embed-tooltip", any>; /** * Shows the embed tooltip at the current cursor position. * Uses ctx to lookup the correct editor instance's state setter. */ export declare function showEmbedTooltip(ctx: Ctx, config: EmbedConfig): void; /** * React component for embed URL input tooltip * Renders based on the current config (YouTube, Vimeo, etc.) * Self-registers its state setter so showEmbedTooltip can find it. */ export declare const EmbedTooltipView: () => import("react/jsx-runtime").JSX.Element | null;