export interface MentionOption {
  label: string;
  value: string;
}

export interface MentionInputProps {
  value?: string;
  onChange?: (value: string) => void;
  onEnter?: (value: string) => void;
  options: MentionOption[];
  placeholder?: string;
  className?: string;
  mentionClassName?: string;
  popoverClassName?: string;
  popoverItemClassName?: string;
  popoverPlacement?: 'auto' | 'top' | 'bottom';
  popoverItemRender?: (option: MentionOption, isSelected: boolean) => React.ReactNode;
  disabled?: boolean;
  maxHeight?: string;
}

export interface ParsedSegment {
  type: 'text' | 'mention';
  content: string;
  label?: string;
  value?: string;
}

export interface PopoverPosition {
  top: number;
  left: number;
  placement: 'top' | 'bottom';
}

