import { ReactNode, HTMLAttributes } from 'react'; import { createInputRefs } from './utils/create-input-refs'; import { InputProps } from './input'; export declare const INPUT_SIZES: readonly ["xs", "sm", "md", "lg", "xl"]; export declare const INPUT_STATUS: readonly ["normal", "error"]; export declare const INPUT_TYPES: readonly ["text", "tel", "email", "password", "number"]; export type InputSize = (typeof INPUT_SIZES)[number]; export type InputStatus = (typeof INPUT_STATUS)[number]; export declare function getInputWrapperClassNameGetter(presetClassName: string): (opts: { className: string | undefined; size: InputSize; status: InputStatus; disabled?: boolean; focus?: boolean; readOnly?: boolean; withClear?: boolean; maxLength?: number; isHover?: boolean; }) => string; interface ExtendWrapProps { prepend?: ReactNode; append?: ReactNode; prefix?: ReactNode; suffix?: ReactNode; } /** * 供 function 组件调用的结构化入参(不再要求传入 React Component 实例) */ interface RenderExtraWrapInput
{
props: P;
inputRefs: ReturnType (compInput: RenderExtraWrapInput , type: keyof ExtendWrapProps, wrapProps?: HTMLAttributes