UNPKG

syncflow-engine

Version:

A flexible and robust data synchronization library for JavaScript applications

16 lines (15 loc) 585 B
import React from "react"; import { SyncEngine, MemorySyncStore, SyncStatus, SyncConfig, SyncOperation } from "../index"; type SyncContextType = { status: SyncStatus; addOperation: (operation: Omit<SyncOperation, "id" | "timestamp" | "status" | "retryCount">) => Promise<void>; engine: SyncEngine; }; export declare const SyncContext: React.Context<SyncContextType | null>; type SyncProviderProps = { children: React.ReactNode; config?: Partial<SyncConfig>; store?: MemorySyncStore; }; export declare const SyncProvider: React.FC<SyncProviderProps>; export {};