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.

19 lines 884 B
//#region ../react/src/hooks/use-conversation-seen.d.ts type UseConversationSeenOptions = { initialData?: ConversationSeen[]; }; /** * Reads the conversation seen store and optionally hydrates it with SSR * payloads. */ declare function useConversationSeen(conversationId: string | null | undefined, options?: UseConversationSeenOptions): ConversationSeen[]; /** * Debounced version of useConversationSeen that delays updates by 500ms * to prevent animation conflicts when messages are sent and immediately seen. * * Use this in UI components where smooth animations are critical. */ declare function useDebouncedConversationSeen(conversationId: string | null | undefined, options?: UseConversationSeenOptions, delay?: number): ConversationSeen[]; //#endregion export { useConversationSeen, useDebouncedConversationSeen }; //# sourceMappingURL=use-conversation-seen.d.ts.map