import type { MentionsChangePayload, MentionsChangeReason } from './Mentions.types'; import type { MentionConfig } from './utils/types'; import { type MentionWalk } from './utils/walk-mentions'; interface UseMentionsValueInput { value: string | undefined; defaultValue: string | undefined; onChange: ((payload: MentionsChangePayload) => void) | undefined; singleLine: boolean; configs: MentionConfig[]; setCaret: (caret: number, walk: MentionWalk) => void; } export declare function useMentionsValue({ value, defaultValue, onChange, singleLine, configs, setCaret, }: UseMentionsValueInput): { walk: MentionWalk; applyEdit: (newValue: string, caret: number, caretBefore: number, reason: MentionsChangeReason, mentionId?: string) => MentionWalk; undo: () => import("./use-mentions-history").MentionsHistoryRestore | null; redo: () => import("./use-mentions-history").MentionsHistoryRestore | null; }; export {};