import React from "react"; import type { InlineTagRenderInfo, MentionTag, XAdkSenderInputPart, XAdkSenderSubmitPart } from "../../types"; export interface InlineTagInputRef { focus: () => void; getText: () => string; getParts: () => XAdkSenderSubmitPart[]; getCursorOffset: () => number; insertMention: (mention: MentionTag, replace?: { start: number; end: number; }) => void; /** @deprecated 请使用 insertMention。 */ insertTag: (mention: MentionTag, replace?: { start: number; end: number; }) => void; } export interface InlineTagInputProps { value: string; mentions: MentionTag[]; defaultInputParts?: XAdkSenderInputPart[]; placeholder?: string; disabled?: boolean; onChange: (value: string) => void; onMentionsChange: (mentions: MentionTag[]) => void; onKeyDown?: React.KeyboardEventHandler; onKeyUp?: React.KeyboardEventHandler; renderMention?: (mention: MentionTag, info: InlineTagRenderInfo) => React.ReactNode; } declare const InlineTagInput: React.ForwardRefExoticComponent>; export default InlineTagInput;