UNPKG

delta-sync

Version:

A lightweight framework for bi-directional database synchronization with automatic version tracking and conflict resolution.

46 lines (45 loc) 982 B
import { DatabaseAdapter } from '../core/types'; export declare function testSyncView(): Promise<{ success: boolean; results: Record<string, { success: boolean; message: string; }>; }>; /** * 测试适配器功能 */ export declare function testAdapter(adapter: DatabaseAdapter, options?: { storeName?: string; autoCleanup?: boolean; }): Promise<{ success: boolean; results: Record<string, { success: boolean; message: string; }>; }>; /** * 测试协调器功能 */ export declare function testCoordinator(): Promise<{ success: boolean; results: Record<string, { success: boolean; message: string; }>; }>; /** * 测试同步引擎功能 */ export declare function testEngine(): Promise<{ success: boolean; results: Record<string, { success: boolean; message: string; }>; }>; /** * 主测试函数 */ export declare function runTests(): Promise<boolean>;