UNPKG

@botonic/react

Version:

Build Chatbots using React

20 lines (19 loc) 745 B
/// <reference types="react" /> import { Session as CoreSession } from '@botonic/core'; import { ActionRequest, WebchatContextProps } from './index-types'; export declare const RequestContext: import("react").Context<Partial<ActionRequest> & { getString: () => string; setLocale: () => void; }>; export interface CloseWebviewOptions { payload?: string; path?: string; params?: Record<string, any>; } export declare const WebviewRequestContext: import("react").Context<{ closeWebview: (options?: CloseWebviewOptions) => undefined; getString: (stringId: string) => string; params: Record<string, any>; session: CoreSession; }>; export declare const WebchatContext: import("react").Context<WebchatContextProps>;