import { HTMLInputAttributes, HTMLSelectAttributes, HTMLTextareaAttributes } from 'svelte/elements';
import { Component } from '../../internal';
import { DefaultProps, SvelteUISize, SvelteUINumberSize, CSS } from '../../styles';
export type InputVariant = 'default' | 'filled' | 'unstyled' | 'headless';
type InputElementType =
| HTMLInputElement
| HTMLSelectElement
| HTMLTextAreaElement
| HTMLDataListElement;
export interface InputBaseProps extends DefaultProps {
icon?: Component | HTMLOrSVGElement;
iconWidth?: number;
iconProps?: { size: number; color: 'currentColor' | string };
showRightSection?: boolean;
rightSectionWidth?: number | string;
rightSectionProps?: Record;
wrapperProps?: Record;
placeholder?: string;
id?: string;
required?: boolean;
radius?: SvelteUINumberSize;
variant?: InputVariant;
disabled?: boolean;
size?: SvelteUISize;
resize?: CSS['resize'];
noPointerEventsRightSection?: boolean;
root?: Component | keyof HTMLElementTagNameMap;
value?: T;
}
interface InputPropsInternal extends InputBaseProps {
invalid?: boolean;
multiline?: boolean;
autocomplete?: string;
}
export type InputProps = InputPropsInternal &
Omit &
Omit &
HTMLTextareaAttributes;