/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import { CSSProperties } from 'react'; export declare type ObjectValueType = { value?: any; label?: string; disabled?: boolean; onError?: (value: any, label: string | undefined, disabled: boolean | undefined, index: number) => string | boolean; }; export interface InputTagProps { className?: string | string[]; style?: CSSProperties; defaultValue?: T[]; mode?: 'single' | 'multiple'; placeholder?: string; disabled?: boolean; autoFocus?: boolean; limit?: number; maxShowTag?: number; allowRepeat?: boolean; allowInput?: boolean; allowClear?: boolean; tokenSeparators?: string[]; getSeparatedArr?: (text: string, tokens: string[]) => string[]; saveOnBlur?: boolean; bordered?: boolean; value?: T[]; onRemove?: (value: T, index: number, event: React.MouseEvent | KeyboardEvent) => void; onChange?: (value: ObjectValueType[], stringValue: any[]) => void; onBlur?: (e: React.FocusEvent) => void; onFocus?: (e: React.FocusEvent) => void; onPressEnter?: (e: React.KeyboardEvent) => void; onKeyDown?: (e: React.KeyboardEvent) => void; onClear?: () => void; transferTag?: (tag: ObjectValueType) => ObjectValueType; isSingleClick?: boolean; isGetClipboardDataOnPaste?: boolean; }