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.

21 lines (20 loc) 700 B
import { RealtimeContextValue } from "./provider3.js"; import React from "react"; //#region ../react/src/support/context/websocket.d.ts type WebSocketContextValue = RealtimeContextValue; type WebSocketProviderProps = { children: React.ReactNode; publicKey?: string; websiteId?: string; visitorId?: string; wsUrl?: string; autoConnect?: boolean; onConnect?: () => void; onDisconnect?: () => void; onError?: (error: Error) => void; }; declare const WebSocketProvider: React.FC<WebSocketProviderProps>; declare const useWebSocket: () => WebSocketContextValue; //#endregion export { type WebSocketContextValue, WebSocketProvider, useWebSocket }; //# sourceMappingURL=websocket.d.ts.map