import type { Draft } from './types.js';
/**
 * 冲突检测
 * 在追加模式下，对比新方案与既有方案，检测两类冲突：
 * - A: 同名属性类型不一致（严重）
 * - B: 同名事件已存在（提醒）
 */
export interface Conflict {
    type: 'property_type_conflict' | 'event_exists';
    severity: 'error' | 'warning';
    name: string;
    existingType?: string;
    newType?: string;
    existingPropCount?: number;
    newPropCount?: number;
}
export interface ConflictResult {
    hasErrors: boolean;
    hasWarnings: boolean;
    conflicts: Conflict[];
}
/**
 * 检测新方案与既有方案的冲突
 */
export declare function detectConflicts(newDraft: Draft, existingDraft: Draft): ConflictResult;
/**
 * 格式化冲突报告（用于 CLI 输出）
 */
export declare function formatConflictReport(result: ConflictResult, existingSummary: {
    events: number;
    eventProps: number;
    commonProps: number;
    userProps: number;
}): string;
