import type { HTMLInputAttributes, HTMLTextareaAttributes } from 'svelte/elements';
import * as iconsProvider from '../../utils/iconsProvider.js';
export interface BaseProps {
label?: string;
labelPosition?: 'top' | 'right' | 'bottom' | 'left';
initialValue?: string | number;
icon?: keyof typeof iconsProvider | undefined;
resize?: string;
stateId?: string | undefined;
allowBlank?: boolean;
showClearBtn?: boolean;
focusOnMount?: boolean;
validator?: ((val: string | number) => string) | undefined;
isValid?: boolean;
/** Returns the input value any time it changes. Use `onchange` if you require the change event */
onChange?: (value: string | number | undefined) => void;
/** Returns the input value on input. Use `oninput` if you require the input event */
onInput?: (value: string | number | undefined) => void;
}
export interface InputProps extends BaseProps, HTMLInputAttributes {
multiline?: false;
}
export interface TextAreaProps extends BaseProps, HTMLTextareaAttributes {
multiline: true;
}