UNPKG

@cossistant/next

Version:

Next.js-ready SDK for building AI-powered support/chat widgets. Hooks + primitives, WS-driven, TypeScript-first. Next.js-ready, Tailwind optional.

15 lines 600 B
//#region ../react/src/hooks/private/use-rest-client.d.ts type UseClientResult = { client: CossistantClient; error: Error | null; }; /** * Creates a memoised `CossistantClient` instance using the provided endpoints * and public key. When no key is passed the hook falls back to environment * variables and surfaces missing configuration errors through the returned * `error` field. */ declare function useClient(publicKey: string | undefined, apiUrl?: string, wsUrl?: string): UseClientResult; //#endregion export { UseClientResult, useClient }; //# sourceMappingURL=use-rest-client.d.ts.map