import React from 'react'; import { Eftpos, DeviceStatus } from './const'; import './index.less'; interface PosProps { /** 厂商类型 */ type: Eftpos; /** 厂商名称 */ name: string; /** 厂商额外信息 */ config: { [key: string]: unknown; }; /** 编辑页面zIndex */ zIndex?: number; /** table 列表宽度 */ tableSize: number[]; /** tyro sdk url */ tyroUrl: string; /** tyro sdk version */ tyroVersion: string; /** tyro log 是否展示 */ useTyroLog?: boolean; /** 获取字段匹配数据项 */ getComm: (params: { field: string; value?: unknown; }, record?: any) => any; /** 设备厂商默认数据 */ getField: (type: Eftpos, status?: DeviceStatus) => any; /** 编辑设备数据 */ onEdit: (device: any, type: DeviceStatus) => Promise; /** 编辑厂商数据 */ onEditKey: () => {}; /** 设备列表数据 */ getList: (params: { type: Eftpos; num: number; skip: number; }) => any; /** 删除列表数据 */ onDel: (id: string | number) => Promise; /** 获取pos刷卡机配置字段 */ getPosComm: (...agrn: unknown[]) => any; savePos: (...agrn: unknown[]) => any; } declare const _default: (props: PosProps) => React.JSX.Element; export default _default;