@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.
25 lines (24 loc) • 863 B
TypeScript
//#region ../react/src/realtime/typing-store.d.ts
declare function setTypingState(options: {
conversationId: string;
actorType: TypingActorType;
actorId: string;
isTyping: boolean;
preview?: string | null;
ttlMs?: number;
}): void;
declare function clearTypingState(options: {
conversationId: string;
actorType: TypingActorType;
actorId: string;
}): void;
declare function applyConversationTypingEvent(event: RealtimeEvent<"conversationTyping">, options?: {
ignoreVisitorId?: string | null;
ignoreUserId?: string | null;
ignoreAiAgentId?: string | null;
ttlMs?: number;
}): void;
declare function clearTypingFromTimelineItem(event: RealtimeEvent<"timelineItemCreated">): void;
//#endregion
export { applyConversationTypingEvent, clearTypingFromTimelineItem, clearTypingState, setTypingState };
//# sourceMappingURL=typing-store.d.ts.map