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 declare type InputMessageVariants = keyof typeof InputMessageVariant; export declare enum InputType { text = 0, password = 1, number = 2, email = 3, search = 4, tel = 5, url = 6 } export declare type InputTypes = keyof typeof InputType; export declare enum InputVariant { small = 0, default = 1 } export declare type InputVariants = keyof typeof InputVariant; export declare enum InputColor { default = 0, accent = 1 } export declare type InputColors = keyof typeof InputColor; declare 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 declare type InputProps = LidoComponentProps<'input', CommonProps & { type?: InputTypes; leftDecorator?: ReactNode; rightDecorator?: ReactNode; }>; export declare type TextareaProps = LidoComponentProps<'textarea', CommonProps>; export declare type InputGroupProps = LidoComponentProps<'span', { fullwidth?: boolean; error?: ReactNode; success?: ReactNode; warning?: ReactNode; }>; interface ValueLabel { value: number; label: ReactNode; } declare 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 declare type SliderInputProps = LidoComponentProps<'input', SliderProps>; declare 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 declare type OptionsSliderInputProps = Omit & OptionsSliderProps; //# sourceMappingURL=types.d.ts.map