import React from 'react'; import { PisellContextType } from '../pisell-config-provider/context'; import './index.less'; export declare type EntryModeType = { /** * 录入模式名称 * scanCode: 扫码录入 * input: 手动录入 * scanner: 扫码枪录入 * nfc: NFC录入 */ type: 'scanCode' | 'input' | 'scanner' | 'nfc'; /** * 录入模式文案 没有使用默认文案 */ name?: string; }; export interface PisellInformationEntryProps extends Omit, 'title' | 'onChange'> { /** 平台 */ platform?: PisellContextType['platform']; /** 录入模式 */ entryModes: EntryModeType[]; /** 标题文案 */ title?: React.ReactNode; /** 搜索框描述文案 */ searchDescribe?: React.ReactNode; /** 录入信息值改变 */ onChange?: (val: string) => void; /** 录入类型切换时候触发的 */ onChangeType?: (val: null | EntryModeType['type']) => void; } declare const PisellInformationEntry: (props: PisellInformationEntryProps) => React.JSX.Element; export default PisellInformationEntry;