import { type ButtonProps, type NecessityType, type ValidationStatus } from "@salt-ds/core"; import { type ChangeEventHandler, type FocusEventHandler, type HTMLAttributes, type KeyboardEventHandler, type ReactEventHandler, type Ref, type SyntheticEvent, type TextareaHTMLAttributes } from "react"; import { type TokenizedInputNextState } from "./useTokenizedInputNext"; type ChangeHandler = (event: SyntheticEvent, selectedItems: Item[] | undefined) => void; type ExpandButtonProps = Pick & { "aria-label"?: string; }; export interface TokenizedInputNextProps extends Partial>, Omit, "onFocus" | "onBlur" | "onChange" | "onKeyUp" | "onKeyDown"> { ExpandButtonProps?: ExpandButtonProps; disabled?: boolean; focused?: boolean; expandButtonRef?: Ref; onBlur?: FocusEventHandler; onKeyUp?: KeyboardEventHandler; onKeyDown?: KeyboardEventHandler; onRemoveItem?: (event: SyntheticEvent, index: number) => void; onInputBlur?: FocusEventHandler; onInputFocus?: FocusEventHandler; onInputChange?: ChangeEventHandler; onClick?: ReactEventHandler; onClear?: ReactEventHandler; delimiters?: string[]; disableAddOnBlur?: boolean; defaultSelected?: Item[]; onChange?: ChangeHandler; onCollapse?: ReactEventHandler; onExpand?: ReactEventHandler; /** * Validation status. */ validationStatus?: Omit; /** * If `true`, the component is read only. */ readOnly?: boolean; /** * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea#Attributes) applied to the `textarea` element. */ textAreaProps?: TextareaHTMLAttributes; /** * Optional ref for the textarea component */ textAreaRef?: Ref; necessity?: NecessityType; /** * Styling variant. Defaults to "primary". */ variant?: "primary" | "secondary"; } export declare const TokenizedInputNext: import("react").ForwardRefExoticComponent & import("react").RefAttributes>; export {};