@river-build/react-sdk
Version:
React Hooks for River SDK
12 lines • 519 B
TypeScript
/**
* Hook to get the sync agent from the RiverSyncProvider.
*
* You can use it to interact with the sync agent for more advanced usage.
*
* Throws an error if no sync agent is set in the RiverSyncProvider.
*
* @returns The sync agent in use, set in RiverSyncProvider.
* @throws If no sync agent is set, use RiverSyncProvider to set one or use useAgentConnection to check if connected.
*/
export declare const useSyncAgent: () => import("@river-build/sdk").SyncAgent;
//# sourceMappingURL=useSyncAgent.d.ts.map