UNPKG

@botonic/react

Version:

Build Chatbots using React

15 lines (14 loc) 538 B
/// <reference types="react" /> import { Session as CoreSession } from '@botonic/core'; import { ActionRequest } from './index-types'; export declare const RequestContext: import("react").Context<ActionRequest>; export interface CloseWebviewOptions { payload?: string; path?: string; params?: Record<string, any>; } export declare const WebviewRequestContext: import("react").Context<{ closeWebview: (options?: CloseWebviewOptions) => Promise<void>; params: Record<string, any>; session: Partial<CoreSession>; }>;