import * as React from 'react';

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

export interface SelectProps extends Omit<React.HTMLAttributes<HTMLSpanElement>, 'onChange'> {
  /** 当前值（受控） */
  value: string;
  onChange?: (value: string) => void;
  /** 字符串数组或 { value, label } 数组 */
  options?: Array<string | SelectOption>;
  /** value 无匹配项时的显示文案 */
  placeholder?: string;
}

export declare function Select(props: SelectProps): React.JSX.Element;
