import type React from 'react'; import type { LocalMessage } from 'stream-chat'; import type { ReactEventHandler } from '../types'; export type CustomMentionHandler = (event: React.BaseSyntheticEvent, message: LocalMessage) => void; /** * Returns the event handlers for a message's mentions, each `undefined` when its custom handler is * not set. A returned handler keeps its identity across renders and always calls the latest custom * handler and message, so a memoized message that keeps an earlier one still runs the current. */ export declare const useMentionsHandler: (message?: LocalMessage, customMentionHandler?: { onMentionsClick?: CustomMentionHandler; onMentionsHover?: CustomMentionHandler; }) => { onMentionsClick?: ReactEventHandler; onMentionsHover?: ReactEventHandler; }; //# sourceMappingURL=useMentionsHandler.d.ts.map