UNPKG

react-py

Version:

Effortlessly run Python code in your React apps

23 lines (22 loc) 768 B
import { Packages } from '../types/Packages'; declare const PythonContext: import("react").Context<{ packages: Packages; timeout: number; lazy: boolean; terminateOnCompletion: boolean; autoImportPackages: boolean; sendInput: (_id: string, _value: string) => void; workerAwaitingInputIds: string[]; getPrompt: (_id: string) => string | undefined; }>; export declare const suppressedMessages: string[]; interface PythonProviderProps { packages?: Packages; timeout?: number; lazy?: boolean; terminateOnCompletion?: boolean; autoImportPackages?: boolean; children: any; } declare function PythonProvider(props: PythonProviderProps): import("react/jsx-runtime").JSX.Element; export { PythonContext, PythonProvider };