import React from 'react'; import type { PisellFindProps, PisellFindRef } from '@pisell/materials'; import type { SearchSectionProps } from '../comprehensiveSearch/components/searchSection'; /** * 透传给内置 SearchSection 输入栏的额外配置。 * * 受控相关字段(value/onChange/onSearch/onClear/onFocus/onBlur/loading/disabled/placeholder/size) * 由 PisellFindPro 自动从 PisellLookup 状态机接好,不需要也不应在此覆盖; * 这里只暴露纯展示 / 行为类配置(搜索图标、摄像头、搜索按钮等)。 */ export declare type PisellFindProSearchSectionProps = Omit; export interface PisellFindProProps extends PisellFindProps { /** * 透传给内置 ComprehensiveSearch 输入栏(SearchSection)的额外配置。 * 仅作用于默认输入栏;若显式传入 `inputRender` 覆盖插槽,则此项不生效。 */ searchSectionProps?: PisellFindProSearchSectionProps; } export declare type PisellFindProRef = PisellFindRef; /** * PisellFindPro —— 私有物料侧的「增强版 Find」。 * * 与 `PisellFind` 行为完全一致(搜索状态机 / 历史 / 容器形态 / 扫码枪监听均复用), * 唯一区别是把输入栏替换为 `ComprehensiveSearch` 的 `SearchSection`(摄像头 + 输入框 + 搜索按钮)。 * * 实现方式:通过 materials 暴露的 `inputRender` 插槽注入 SearchSection,并把插槽上下文 * (受控值 / 确认 / 清除 / 聚焦失焦 / loading 等)逐一接到 SearchSection 上,因此 inline、 * popup、modal、drawer 各形态都能正常工作。 * * - materials 内部仍可直接用 `PisellFind` / `PisellLookup`(默认 antd 输入框); * - private-materials 内需要「综合搜索输入栏」外观时,改用本组件即可,无需让 materials 反向依赖。 * * @example * ```tsx * doSearch(keyword)} * /> * ``` */ export declare const PisellFindPro: React.ForwardRefExoticComponent>; export default PisellFindPro;