/** * * This file may have been modified by Bytedance Inc. (“Bytedance Inc.'s Modifications”). * All Bytedance Inc.'s Modifications are Copyright (year) Bytedance Inc.. * * This source code is licensed under the Apache license. * See LICENSE file in the project root for license information. * */ import * as React from 'react'; import { InputProps } from './Input'; import { DirectionType } from '../../config-provider'; import { SizeType } from '../../config-provider/component/SizeContext'; declare const ClearableInputType: ["text", "input"]; export declare function hasPrefixSuffix(props: InputProps | ClearableInputProps): boolean; interface BasicProps { prefixCls: string; inputType: typeof ClearableInputType[number]; value?: any; allowClear?: boolean; element: React.ReactElement; handleReset: (event: React.MouseEvent) => void; className?: string; style?: React.CSSProperties; disabled?: boolean; direction?: DirectionType; focused?: boolean; readOnly?: boolean; bordered: boolean; } interface ClearableInputProps extends BasicProps { size?: SizeType; suffix?: React.ReactNode; prefix?: React.ReactNode; addonBefore?: React.ReactNode; addonAfter?: React.ReactNode; triggerFocus?: () => void; } declare class ClearableLabeledInput extends React.Component { private containerRef; onInputMouseUp: React.MouseEventHandler; renderClearIcon(prefixCls: string): JSX.Element | null; renderSuffix(prefixCls: string): JSX.Element | null; renderLabeledIcon(prefixCls: string, element: React.ReactElement): JSX.Element; renderInputWithLabel(prefixCls: string, labeledElement: React.ReactElement): JSX.Element; renderTextAreaWithClearIcon(prefixCls: string, element: React.ReactElement): JSX.Element; render(): JSX.Element; } export default ClearableLabeledInput;