import type { Draft } from './types.js';
/**
 * 埋点方案自动修复
 * 根据 AE API 返回的错误自动修复 draft.json
 */
export interface TEUploadError {
    errorType: string;
    errorTypeDesc: string;
    cellName: string;
    row: number;
    value: string;
}
export interface TEUploadResponse {
    return_code: number;
    return_message: string;
    data?: {
        eventErrorMap?: Record<string, TEUploadError[]>;
        userErrorMap?: Record<string, TEUploadError[]>;
    };
}
/**
 * 从 AE API 响应中提取错误
 */
export declare function extractErrors(response: TEUploadResponse): TEUploadError[];
/**
 * 自动修复 draft.json
 */
export declare function fixDraft(draft: Draft, response: TEUploadResponse): string[];
/**
 * 内部校验修复（在生成 xlsx 前执行）
 */
export declare function validateAndFix(draft: Draft): string[];
