///
import type { InputProps as AntdMobileInputProps } from 'antd-mobile';
import type { AudioInputBaseProps } from '../AudioInput';
type BaseInputProps = Omit;
export type { AudioInputBaseProps };
export interface InputProps extends BaseInputProps {
/**
* 输入框前缀内容
* @type { React.ReactNode }
* @default undefined
*/
prefix?: React.ReactNode;
/**
* 输入框后缀内容
* @type { React.ReactNode }
* @default undefined
*/
suffix?: React.ReactNode;
/**
* 是否允许音频输入
* @type { boolean | AudioInputBaseProps }
* @default false
*/
allowAudio?: boolean | AudioInputBaseProps;
/**
* 是否带边框
* @type { boolean }
* @default false
*/
bordered?: boolean;
/**
* 加载状态
* @type { boolean }
* @default false
*/
loading?: boolean;
/**
* 搜索模式
* @type { boolean }
* @default false
*/
search?: boolean;
/**
* 搜索回调
* @type { (value: string) => void }
* @default undefined
*/
onSearch?: (value: string) => void;
/**
* 暂停加载回调
* @description 暂停加载回调,用于在搜索模式下暂停加载状态
* @returns { void }
*/
onPauseLoading?: () => void;
/**
* 输入值变化时的回调
* @type { (value: string) => void }
* @default undefined
*/
onChange?: (value: string) => void;
}