import { type AriaAttributes, type ChangeEvent, type FocusEvent, type KeyboardEvent, type MouseEvent, type ReactNode } from "react"; import { type IconType } from "../@ui/@types/icon.js"; import { type IAccessibilityConfigBase } from "../typings/accessibility.js"; import { type IDomNative, type IDomNativeProps } from "../typings/domNative.js"; /** * @internal */ export interface IInputPureAccessibilityConfig extends IAccessibilityConfigBase { prefixAriaLabel?: string; suffixAriaLabel?: string; ariaInvalid?: AriaAttributes["aria-invalid"]; } /** * @internal */ export interface IInputPureProps extends IDomNativeProps { className?: string; clearOnEsc?: boolean; disabled?: boolean; hasError?: boolean; hasWarning?: boolean; isSearch?: boolean; isSmall?: boolean; maxlength?: number; onChange?: (value: string | number, e?: ChangeEvent) => void; onKeyDown?: (e: KeyboardEvent) => void; onEscKeyPress?: (e: KeyboardEvent) => void; onEnterKeyPress?: () => void; onBlur?: (e: FocusEvent) => void; onFocus?: (e: FocusEvent) => void; placeholder?: string; prefix?: string; readonly?: boolean; suffix?: string; label?: ReactNode; labelPositionTop?: boolean; value?: string | number; id?: string; name?: string; type?: string; required?: boolean; accessibilityType?: string; accessibilityConfig?: IInputPureAccessibilityConfig; autocomplete?: string; iconButton?: IconType; onIconButtonClick?: (e: MouseEvent) => void; iconButtonLabel?: string; dataTestId?: string; } /** * Imperative handle exposed by {@link InputPure}. * * `inputNodeRef` is the native `` element - consumers chain `Input.inputNodeRef.inputNodeRef` * down to it, so it has to stay the DOM node and not the component instance. * * @internal */ export interface IInputPureHandle extends IDomNative { inputNodeRef: HTMLInputElement | null; } /** * Defaults shared with the `Input` wrapper, which re-exposes them as its own `defaultProps`. * Keep in sync with the destructuring defaults in {@link InputPure}. * * @internal */ export declare const inputPureDefaultProps: { autofocus: boolean; className: string; clearOnEsc: boolean; disabled: boolean; hasError: boolean; hasWarning: boolean; isSearch: boolean; isSmall: boolean; maxlength: number; onChange: (..._args: unknown[]) => void; onEscKeyPress: (..._args: unknown[]) => void; onEnterKeyPress: (..._args: unknown[]) => void; onBlur: (..._args: unknown[]) => void; onFocus: (..._args: unknown[]) => void; placeholder: string; prefix: string; readonly: boolean; suffix: string; label: string; labelPositionTop: boolean; value: string; }; /** * @internal */ export declare const InputPure: import("react").ForwardRefExoticComponent>; //# sourceMappingURL=InputPure.d.ts.map