import React, { Component } from 'react'; import { IntlShape } from 'react-intl'; import { SelectOption } from '../../utils/select-utils'; type Props = { /** Set field disabled */ disabled?: boolean; /** @ignore */ intl: IntlShape; /** Name of the `option` key that stands for option label _(visible to user)_ */ labelKey?: string; /** Field name */ name: string; /** Is fired when field loses focus */ onBlur?: () => void; /** * Is fired when field value changes * * @param {Array} value New value */ onChange: (value: string | string[], event?: React.SyntheticEvent) => void; /** * Select options. Option format: {_labelKey_: [label], _valueKey_: [value]} * * @param {(string|Object)} label Option label _(string or translation id)_ * @param {string} value Option value */ options: SelectOption[]; /** Field placeholder text _(string or translation id)_ */ placeholder?: string; /** Field value */ value?: string[]; /** Name of the `option` key that stands for option value _(invisible to user)_ */ valueKey?: string; }; type State = { value: string[]; }; declare class MultiSelect extends Component { static defaultProps: { disabled: boolean; labelKey: string; placeholder: string; value: never[]; valueKey: string; }; state: { value: string[]; }; componentWillReceiveProps(newProps: Props): void; handleChange: (value: string | string[], event?: React.SyntheticEvent) => void; handleMobileChange: (value: string | string[], event?: React.SyntheticEvent) => void; handleClear: () => void; renderDisabledValue: () => import("react/jsx-runtime").JSX.Element; render(): import("react/jsx-runtime").JSX.Element; } export default MultiSelect; export declare const WrappedMultiSelect: (props: import("../formField").FormFieldProps) => import("react/jsx-runtime").JSX.Element;