UNPKG

@ledgerhq/live-common

Version:
23 lines 917 B
export declare const POLLING_FINISHED_DELAY_MS = 200; export interface WalletSyncUserState { readonly visualPending: boolean; readonly walletSyncError: Error | null; readonly onUserRefresh: () => void; } export interface SyncSourcesState { readonly isPending: boolean; readonly stablePending: boolean; readonly hasCvOrBridgeError: boolean; readonly hasWalletSyncError: boolean; readonly triggerRefresh: () => void; } /** * Aggregates the three sync sources (countervalues, bridge, wallet sync) into * a single unified state. This is the raw sync plumbing layer — no lifecycle * or loading semantics. * * `walletSyncState` is injected so each platform can provide its own * context-based implementation (LLD / LLM WalletSyncContext). */ export declare function useSyncSources(walletSyncState: WalletSyncUserState): SyncSourcesState; //# sourceMappingURL=useSyncSources.d.ts.map