import { Atom } from '@cn-ui/use';
import { JSX, JSXElement } from 'solid-js';
import { FormField } from '../interface';
export interface InputTextProps extends FormField {
    value: Atom<string>;
    placeholder?: string;
    allowClear?: boolean;
    /**
     * @zh 输入框最大输入的长度
     */
    maxLength?: number | {
        length: number;
        errorOnly?: boolean;
    };
    /**
     * @zh 配合 `maxLength`，显示字数统计
     */
    showWordLimit?: boolean;
    icon?: JSXElement;
}
export declare const InputText: import("solid-js").Component<Omit<InputTextProps, "style" | "class"> & {
    ref?: HTMLElement | ((el: HTMLElement) => void);
    style?: string | JSX.CSSProperties;
    className?: string | string[] | typeof import("@cn-ui/use").classNames;
    class?: string | string[] | typeof import("@cn-ui/use").classNames;
    classList?: typeof import("@cn-ui/use").classNames | {
        [k: string]: boolean;
    };
}>;
