import type React from 'react'; import type { dia } from '@joint/core'; export type OnCreateHighlighter = (cellView: dia.ElementView> | dia.LinkView>, element: SVGElement | Record, highlighterId: string, options: Highlighter) => dia.HighlighterView; export interface CustomHighlighterProps { /** * Child elements to render inside the highlighter. */ readonly children?: React.ReactNode | null | false; /** * Callback function should return any highlighter. * @param cellView - The cell view to which the highlighter is attached. * @param element - The SVG element to which the highlighter is attached. * @param highlighterId - The ID of the highlighter. * @param options - The options for the highlighter. * @returns The created highlighter. */ readonly onCreateHighlighter: OnCreateHighlighter; /** * This should be memoized */ readonly options: Highlighter; /** * If the highlighter is disabled or not. */ readonly isHidden?: boolean; } /** * Custom highlighter component. * Allows to create a custom highlighter. * @group Components * @example * ```tsx * import { Highlighter } from '@joint/react' * return * ``` */ export declare const Custom: React.ForwardRefExoticComponent & React.RefAttributes>;