aspirechat
Version:
A highly customizable React chatbot component with extensive configuration options
13 lines (12 loc) • 507 B
TypeScript
import React, { ReactNode } from "react";
import { ChatOptions } from "../hooks/useChat";
import { ChatContextType, ChatConfig } from "../types";
declare const ChatContext: React.Context<ChatContextType | null>;
interface ChatContextProviderProps {
children: ReactNode;
initialConfig?: ChatConfig;
initialOptions?: ChatOptions;
}
export declare const ChatContextProvider: React.FC<ChatContextProviderProps>;
export declare const useGlobalChat: () => ChatContextType;
export default ChatContext;