import * as React from 'react'; import { type SimulateReactInputTargetState } from '../../lib/react'; import type { ChipOption, ChipOptionLabel, ChipOptionValue, GetNewOptionData, GetOptionLabel, GetOptionValue, UseChipsInputBaseProps } from '../ChipsInputBase/types'; export declare const transformValue: (value: O[], getOptionValue: GetOptionValue, getOptionLabel: GetOptionLabel) => Array; export interface UseChipsInputProps extends UseChipsInputBaseProps { /** * Селектор значения. */ getOptionValue?: GetOptionValue; /** * Селектор пользовательского представления. */ getOptionLabel?: GetOptionLabel; /** * Функция для создания новой опции. */ getNewOptionData?: GetNewOptionData; } export declare const useChipsInput: ({ value: valueProp, defaultValue, onChange, getOptionLabel, getOptionValue, getNewOptionData, inputValue: inputValueProp, defaultInputValue, onInputChange: onInputChangeProp, disabled, delimiter, }: UseChipsInputProps) => { value: Array; addOption: (newValue: O | string) => void; addOptionFromInput: (inputValue: string) => void; removeOption: (newValue: O | ChipOptionValue) => void; clearOptions: () => void; inputRef: React.RefObject<(HTMLInputElement & SimulateReactInputTargetState) | null>; inputValue: string; onInputChange: (e: React.ChangeEvent, canCreate?: boolean) => any; clearInput: () => void; }; //# sourceMappingURL=useChipsInput.d.ts.map