import { FormValidationStatus } from "../../form/src/public-types.js"; import { ThemeCommonVars } from "../../_styles/common/light.js"; import { ExtractPublicPropTypes } from "../../_utils/naive/extract-public-props.js"; import { MaybeArray } from "../../_utils/vue/call.js"; import "../../_utils/index.js"; import { InputTheme, InputThemeOverrides, InputThemeVars } from "../styles/light.js"; import "../styles/index.js"; import { OnUpdateValue } from "./interface.js"; import { InputSize } from "./public-types.js"; import "../../index.js"; import { ScrollbarTheme } from "../../_internal/scrollbar/styles/light.js"; import "../../_internal/scrollbar/styles/index.js"; import { RtlItem } from "../../config-provider/src/internal-interface.js"; import { CSSProperties, InputHTMLAttributes, PropType, Ref, SlotsType, TextareaHTMLAttributes, VNode, VNodeChild } from "vue"; //#region src/input/src/Input.d.ts declare const inputProps: { bordered: { type: PropType; default: undefined; }; type: { type: PropType<"text" | "textarea" | "password">; default: string; }; placeholder: PropType; defaultValue: { type: PropType; default: null; }; value: PropType; disabled: { type: PropType; default: undefined; }; size: PropType; rows: { type: PropType; default: number; }; round: BooleanConstructor; minlength: PropType; maxlength: PropType; clearable: BooleanConstructor; autosize: { type: PropType; default: boolean; }; pair: BooleanConstructor; separator: StringConstructor; readonly: { type: (BooleanConstructor | StringConstructor)[]; default: boolean; }; passivelyActivated: BooleanConstructor; showPasswordOn: PropType<"mousedown" | "click">; stateful: { type: BooleanConstructor; default: boolean; }; autofocus: BooleanConstructor; inputProps: PropType; resizable: { type: BooleanConstructor; default: boolean; }; showCount: BooleanConstructor; loading: { type: BooleanConstructor; default: undefined; }; allowInput: PropType<(value: string) => boolean>; renderCount: PropType<(props: { value: string; }) => VNodeChild>; onMousedown: PropType<(e: MouseEvent) => void>; onKeydown: PropType<(e: KeyboardEvent) => void>; onKeyup: PropType<(e: KeyboardEvent) => void>; onInput: PropType; onFocus: PropType void>>; onBlur: PropType void>>; onClick: PropType void>>; onChange: PropType; onClear: PropType void>>; countGraphemes: PropType<(value: string) => number>; status: PropType; 'onUpdate:value': PropType>; onUpdateValue: PropType>; /** private */ textDecoration: PropType; attrSize: { type: NumberConstructor; default: number; }; onInputBlur: PropType void>>; onInputFocus: PropType void>>; onDeactivate: PropType void>>; onActivate: PropType void>>; onWrapperFocus: PropType void>>; onWrapperBlur: PropType void>>; internalDeactivateOnEnter: BooleanConstructor; internalForceFocus: BooleanConstructor; internalLoadingBeforeSuffix: { type: BooleanConstructor; default: boolean; }; /** deprecated */ showPasswordToggle: BooleanConstructor; theme: PropType; themeOverrides: PropType; builtinThemeOverrides: PropType; }; type InputProps = ExtractPublicPropTypes; interface InputSlots { 'clear-icon'?: () => VNode[]; count?: (props: { value: string; }) => VNode[]; 'password-invisible-icon'?: () => VNode[]; 'password-visible-icon'?: () => VNode[]; prefix?: () => VNode[]; separator?: () => VNode[]; suffix?: () => VNode[]; } declare const _default: import("vue").DefineComponent; default: undefined; }; type: { type: PropType<"text" | "textarea" | "password">; default: string; }; placeholder: PropType; defaultValue: { type: PropType; default: null; }; value: PropType; disabled: { type: PropType; default: undefined; }; size: PropType; rows: { type: PropType; default: number; }; round: BooleanConstructor; minlength: PropType; maxlength: PropType; clearable: BooleanConstructor; autosize: { type: PropType; default: boolean; }; pair: BooleanConstructor; separator: StringConstructor; readonly: { type: (BooleanConstructor | StringConstructor)[]; default: boolean; }; passivelyActivated: BooleanConstructor; showPasswordOn: PropType<"mousedown" | "click">; stateful: { type: BooleanConstructor; default: boolean; }; autofocus: BooleanConstructor; inputProps: PropType; resizable: { type: BooleanConstructor; default: boolean; }; showCount: BooleanConstructor; loading: { type: BooleanConstructor; default: undefined; }; allowInput: PropType<(value: string) => boolean>; renderCount: PropType<(props: { value: string; }) => VNodeChild>; onMousedown: PropType<(e: MouseEvent) => void>; onKeydown: PropType<(e: KeyboardEvent) => void>; onKeyup: PropType<(e: KeyboardEvent) => void>; onInput: PropType; onFocus: PropType void>>; onBlur: PropType void>>; onClick: PropType void>>; onChange: PropType; onClear: PropType void>>; countGraphemes: PropType<(value: string) => number>; status: PropType; 'onUpdate:value': PropType>; onUpdateValue: PropType>; /** private */ textDecoration: PropType; attrSize: { type: NumberConstructor; default: number; }; onInputBlur: PropType void>>; onInputFocus: PropType void>>; onDeactivate: PropType void>>; onActivate: PropType void>>; onWrapperFocus: PropType void>>; onWrapperBlur: PropType void>>; internalDeactivateOnEnter: BooleanConstructor; internalForceFocus: BooleanConstructor; internalLoadingBeforeSuffix: { type: BooleanConstructor; default: boolean; }; /** deprecated */ showPasswordToggle: BooleanConstructor; theme: PropType; themeOverrides: PropType; builtinThemeOverrides: PropType; }>, { wrapperElRef: Ref; inputElRef: Ref; inputMirrorElRef: Ref; inputEl2Ref: Ref; textareaElRef: Ref; textareaMirrorElRef: Ref; textareaScrollbarInstRef: unknown; rtlEnabled: Ref | undefined; uncontrolledValue: Ref; mergedValue: import("vue").ComputedRef; passwordVisible: Ref; mergedPlaceholder: import("vue").ComputedRef<[string, string] | [string]>; showPlaceholder1: import("vue").ComputedRef; showPlaceholder2: import("vue").ComputedRef; mergedFocus: import("vue").ComputedRef; isComposing: Ref; activated: Ref; showClearButton: import("vue").ComputedRef; mergedSize: import("vue").ComputedRef; mergedDisabled: import("vue").ComputedRef; textDecorationStyle: import("vue").ComputedRef; mergedClsPrefix: Ref; mergedBordered: import("vue").ComputedRef; mergedShowPasswordOn: import("vue").ComputedRef<"click" | "mousedown" | undefined>; placeholderStyle: Ref<{ top: string; }, { top: string; } | { top: string; }>; mergedStatus: import("vue").ComputedRef; textAreaScrollContainerWidth: Ref; handleTextAreaScroll: (e: Event) => void; handleCompositionStart: () => void; handleCompositionEnd: (e: CompositionEvent) => void; handleInput: (e: InputEvent | CompositionEvent | Event, index?: 0 | 1, event?: string) => void; handleInputBlur: (e: FocusEvent) => void; handleInputFocus: (e: FocusEvent, index: number) => void; handleWrapperBlur: (e: FocusEvent) => void; handleWrapperFocus: (e: FocusEvent) => void; handleMouseEnter: () => void; handleMouseLeave: () => void; handleMouseDown: (e: MouseEvent) => void; handleChange: (e: Event, index?: 0 | 1) => void; handleClick: (e: MouseEvent) => void; handleClear: (e: MouseEvent) => void; handlePasswordToggleClick: () => void; handlePasswordToggleMousedown: (e: MouseEvent) => void; handleWrapperKeydown: (e: KeyboardEvent) => void; handleWrapperKeyup: (e: KeyboardEvent) => void; handleTextAreaMirrorResize: () => void; getTextareaScrollContainer: () => HTMLTextAreaElement | null; mergedTheme: import("vue").ComputedRef<{ common: ThemeCommonVars; self: InputThemeVars; peers: { Scrollbar: ScrollbarTheme; }; peerOverrides: { Scrollbar?: { peers?: { [x: string]: any; } | undefined; } | undefined; }; }>; cssVars: Ref | undefined; themeClass: Ref | undefined; onRender: (() => void) | undefined; isCompositing: Ref; blur: () => void; clear: () => void; focus: () => void; select: () => void; activate: () => void; deactivate: () => void; scrollTo: (options: ScrollToOptions) => void; }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly; default: undefined; }; type: { type: PropType<"text" | "textarea" | "password">; default: string; }; placeholder: PropType; defaultValue: { type: PropType; default: null; }; value: PropType; disabled: { type: PropType; default: undefined; }; size: PropType; rows: { type: PropType; default: number; }; round: BooleanConstructor; minlength: PropType; maxlength: PropType; clearable: BooleanConstructor; autosize: { type: PropType; default: boolean; }; pair: BooleanConstructor; separator: StringConstructor; readonly: { type: (BooleanConstructor | StringConstructor)[]; default: boolean; }; passivelyActivated: BooleanConstructor; showPasswordOn: PropType<"mousedown" | "click">; stateful: { type: BooleanConstructor; default: boolean; }; autofocus: BooleanConstructor; inputProps: PropType; resizable: { type: BooleanConstructor; default: boolean; }; showCount: BooleanConstructor; loading: { type: BooleanConstructor; default: undefined; }; allowInput: PropType<(value: string) => boolean>; renderCount: PropType<(props: { value: string; }) => VNodeChild>; onMousedown: PropType<(e: MouseEvent) => void>; onKeydown: PropType<(e: KeyboardEvent) => void>; onKeyup: PropType<(e: KeyboardEvent) => void>; onInput: PropType; onFocus: PropType void>>; onBlur: PropType void>>; onClick: PropType void>>; onChange: PropType; onClear: PropType void>>; countGraphemes: PropType<(value: string) => number>; status: PropType; 'onUpdate:value': PropType>; onUpdateValue: PropType>; /** private */ textDecoration: PropType; attrSize: { type: NumberConstructor; default: number; }; onInputBlur: PropType void>>; onInputFocus: PropType void>>; onDeactivate: PropType void>>; onActivate: PropType void>>; onWrapperFocus: PropType void>>; onWrapperBlur: PropType void>>; internalDeactivateOnEnter: BooleanConstructor; internalForceFocus: BooleanConstructor; internalLoadingBeforeSuffix: { type: BooleanConstructor; default: boolean; }; /** deprecated */ showPasswordToggle: BooleanConstructor; theme: PropType; themeOverrides: PropType; builtinThemeOverrides: PropType; }>> & Readonly<{}>, { type: "textarea" | "text" | "password"; bordered: boolean | undefined; loading: boolean; clearable: boolean; defaultValue: string | [string, string] | null; disabled: boolean | undefined; round: boolean; stateful: boolean; resizable: boolean; rows: string | number; autosize: boolean | { minRows?: number; maxRows?: number; }; pair: boolean; readonly: string | boolean; passivelyActivated: boolean; autofocus: boolean; showCount: boolean; attrSize: number; internalDeactivateOnEnter: boolean; internalForceFocus: boolean; internalLoadingBeforeSuffix: boolean; showPasswordToggle: boolean; }, SlotsType, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>; //#endregion export { InputProps, InputSlots, _default as default, inputProps };