UNPKG

@towns-protocol/react-sdk

Version:

React Hooks for Towns Protocol SDK

12 lines 522 B
/** * Hook to get the sync agent from the TownsSyncProvider. * * 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 TownsSyncProvider. * * @returns The sync agent in use, set in TownsSyncProvider. * @throws If no sync agent is set, use TownsSyncProvider to set one or use useAgentConnection to check if connected. */ export declare const useSyncAgent: () => import("@towns-protocol/sdk").SyncAgent; //# sourceMappingURL=useSyncAgent.d.ts.map