export type ImportResult = {
    inserted: number;
    updated: number;
    failed: Array<{
        row: number;
        message: string;
    }>;
};
type ImportPreview = {
    headers: string[];
    rows: Record<string, unknown>[];
};
/** 本地解析 xlsx 供导入弹窗预览 */
export declare function parseImportExcelPreview(file: File): Promise<ImportPreview>;
/** GET /importTemplate → 下载实体导入模板 */
export declare function downloadImportTemplate(namespace: string, filename?: string): Promise<void>;
/** POST /import multipart file */
export declare function uploadImportExcel(namespace: string, file: File): Promise<ImportResult>;
/** POST /import JSON `{ rows }`（业务改写行后直传，跳过再拼 File） */
export declare function uploadImportRows(namespace: string, rows: Record<string, unknown>[]): Promise<ImportResult>;
export {};
