import React from 'react';
import { IInputBaseProps } from '../../../input';
import { IRecycleTreeHandle, IRecycleTreeProps } from '../../RecycleTree';
import './filter.less';
type FilterHoc<Props, ExtraProps = any> = (Component: React.ComponentType<Props>) => React.ComponentType<Props & (ExtraProps extends undefined ? never : ExtraProps)>;
export interface IRecycleTreeFilterHandle extends IRecycleTreeHandle {
    clearFilter: () => void;
}
/**
 * 将 RecycleTree 组件装饰到具备筛选功能
 * @param recycleTreeComp RecycleTree 组件
 * 将原有的 RecycleTree 拓展增加三个新的 props
 *  * @param filterEnabled @optional 筛选模式控制开关
 *  * @param filterAfterClear @optional 清空筛选 input 输入时的回调
 *  * @param filterAutoFocus @optional 是否自动聚焦
 *  * @param filterPlaceholder @optional 筛选 input 的 placeholder
 */
export declare const RecycleTreeFilterDecorator: FilterHoc<IRecycleTreeProps, {
    filterEnabled?: boolean;
    onFilterBlur?: () => void;
    beforeFilterValueChange?: (value: string) => Promise<void>;
    filterAfterClear?: IInputBaseProps['afterClear'];
    filterPlaceholder?: IInputBaseProps['placeholder'];
    filterAutoFocus?: IInputBaseProps['autoFocus'];
}>;
export {};
//# sourceMappingURL=index.d.ts.map