import { ChangeEventHandler, ReactNode, RefObject } from 'react'; import { LidoComponentProps } from '../utils/index.js'; export type { Theme } from '../theme/index.js'; export declare enum InputMessageVariant { error = 0, warning = 1, success = 2 } export type InputMessageVariants = keyof typeof InputMessageVariant; export declare enum InputType { text = 0, password = 1, number = 2, email = 3, search = 4, tel = 5, url = 6 } export type InputTypes = keyof typeof InputType; export declare enum InputVariant { small = 0, default = 1 } export type InputVariants = keyof typeof InputVariant; export declare enum InputColor { default = 0, accent = 1 } export type InputColors = keyof typeof InputColor; type CommonProps = { label?: ReactNode; error?: ReactNode | boolean; warning?: ReactNode | boolean; success?: ReactNode | boolean; variant?: InputVariants; color?: InputColors; active?: boolean; fullwidth?: boolean; wrapperRef?: RefObject; as?: never; }; export type InputProps = LidoComponentProps<'input', CommonProps & { type?: InputTypes; leftDecorator?: ReactNode; rightDecorator?: ReactNode; }>; export type TextareaProps = LidoComponentProps<'textarea', CommonProps>; export type InputGroupProps = LidoComponentProps<'span', { fullwidth?: boolean; error?: ReactNode; success?: ReactNode; warning?: ReactNode; }>; interface ValueLabel { value: number; label: ReactNode; } type SliderProps = { value: number; onChange?: ChangeEventHandler; min?: number; max?: number; minLabel?: ReactNode; maxLabel?: ReactNode; step?: number; getLabel?: (value: number) => ReactNode; borderNone?: boolean; labels?: ValueLabel[]; onLabelClick?: (value: number) => unknown; }; export type SliderInputProps = LidoComponentProps<'input', SliderProps>; type SliderOptionValue = string | number; interface SliderOption { value: SliderOptionValue; label: ReactNode; } interface OptionsSliderProps { options: [SliderOption, SliderOption, ...SliderOption[]]; value?: SliderOptionValue; onChange: (value: SliderOptionValue, valueIndex: number) => unknown; } export type OptionsSliderInputProps = Omit & OptionsSliderProps; //# sourceMappingURL=types.d.ts.map