// ============================================================ // IPC 通道常量 — 汇总导出 // // 使用方式: // import { MAIN_TO_RENDERER, BIDIRECTIONAL } from '@/shared/constants/ipc'; // import { BIDIRECTIONAL_STORAGE } from '@/shared/constants/ipc/storage'; // ============================================================ export { MAIN_TO_RENDERER, RENDERER_TO_MAIN, BIDIRECTIONAL_CONFIG } from './base'; export { BIDIRECTIONAL_STORAGE } from './storage'; export { MAIN_TO_RENDERER_CANVAS, RENDERER_TO_MAIN_CANVAS, BIDIRECTIONAL_CANVAS } from './canvas'; export { MAIN_TO_RENDERER_UPDATER, RENDERER_TO_MAIN_UPDATER } from './updater'; // ---------- 兼容性汇总(向后兼容) ---------- import { BIDIRECTIONAL_CONFIG } from './base'; import { BIDIRECTIONAL_STORAGE } from './storage'; import { BIDIRECTIONAL_CANVAS } from './canvas'; /** @deprecated 请使用按功能域拆分的导出 */ export const BIDIRECTIONAL = { ...BIDIRECTIONAL_CONFIG, ...BIDIRECTIONAL_STORAGE, ...BIDIRECTIONAL_CANVAS, } as const;