import { default as React } from 'react'; import { SingleLineTextInputProps } from '../TextInput'; export declare const createToken: (inputValue: string, delimiter: string) => string; export interface TokenInputProps extends Omit { /** Label for input; also rendered as the fieldset legend */ label: string; /** * Name of input that holds the submission value. * This should be the name of the field in the submitted form. */ fieldName: string; /** * Value for the input with the given `name` prop. * This should be the value of the field in the submitted form. */ fieldValue: string; /** Input change callback */ onInputChange?: (event: { target: { value: string; }; }) => void; /** Value of input element */ inputValue?: string; /** * Called with the list of selected tokens * as the argument when user updates tokens list */ onTokensChange?: (tokens: string[]) => void; /** List of selected tokens by name */ tokens?: string[]; /** Delimiter users can enter to tokenize text */ delimiter?: string; } /** * `TokenInput` is a **fully controlled** component used to show a list of "tokens" * a user has entered into the accompanying text input. */ declare const TokenInput: ({ fieldName, label, fieldValue, onInputChange, onTokensChange, inputValue, tokens, delimiter, disabled, ...otherProps }: TokenInputProps) => React.JSX.Element; export default TokenInput; //# sourceMappingURL=index.d.ts.map