import * as React from 'react'; import { DropdownProps } from 'semantic-ui-react'; export type SelectOption = { key: string; value: string; text: string; label?: { [x: string]: string; } | string; }; type SelectFieldProps = { key: string; name: string; label: string; options: { group?: object; emptyValue: (props: SelectFieldProps) => boolean; }; errors: { [x: string]: any; }; format: string; collection: string; values: { source: any; } | SelectOption[]; refresh: SelectOption[]; isDisabled: (name: string, options?: object) => boolean; isProtected: boolean; setData: (name: string, value: unknown) => void; getData: (name: string) => string | SelectOption; getFieldKey: (name: string) => string; t: (key?: string) => string; authUser: any; lb: any; }; type SelectFieldState = { options: SelectOption[]; originalName: string; currentValue?: SelectOption | string; values: SelectOption[]; foptions?: { emptyValue: (props: SelectFieldProps) => boolean; group?: object; }; [x: string]: any; }; export default class SelectField extends React.Component { t: (key: string) => string; lb: any; constructor(props: SelectFieldProps); componentDidMount(): Promise; componentDidUpdate(prevProps: SelectFieldProps, _prevState: any): Promise; initSelect(): Promise; initSelectValues: () => Promise; isSelectOption(value: unknown): value is SelectOption; /** * Insert the selected value of a dropdown into the form data the right way * @param object _e the event (unused) * @param object data field data */ onChangeSelect: (_e: React.SyntheticEvent, data: DropdownProps) => Promise; render(): JSX.Element; } export {};