import { FC } from 'react'; import type { PntRegionSelectTexts, RegionOption } from './types'; /** 解析后单行状态 */ export type ImportRowStatus = 'pending' | 'exists' | 'unmatched'; export interface ImportRow { /** 用户输入的原始文本 */ region: string; status: ImportRowStatus; } /** 组件内部选项额外携带数据源原始码(保留前导零) */ type ImportRegionOption = RegionOption & { rawRegionCode?: string; }; interface ImportDialogProps { visible: boolean; options: ImportRegionOption[]; currentValue: string[]; texts: Required; dialogProps?: Record; onClose: () => void; /** 导入确认:回传合并后的值与本次新增项 */ onConfirm: (nextValue: string[], added: string[]) => void; } /** * 批量导入弹窗: * 粘贴文本 → 按 代码/中文名/英文名(大小写不敏感)解析 → 分类展示 → 确认导入 */ declare const ImportDialog: FC; export default ImportDialog;