UNPKG

thebe-react

Version:

React providers and components for thebe-core

21 lines (20 loc) 743 B
import React from 'react'; export type ThebeCore = typeof import('thebe-core'); export declare function ThebeLoaderProvider({ start, children, }: React.PropsWithChildren<{ start?: boolean; }>): import("react/jsx-runtime").JSX.Element; export declare function ThebeBundleLoaderProvider({ start, loadThebeLite, publicPath, children, options, }: React.PropsWithChildren<{ start?: boolean; loadThebeLite?: boolean; publicPath?: string; options?: { attempts?: number; delay?: number; }; }>): import("react/jsx-runtime").JSX.Element; export declare function useThebeLoader(): { core?: typeof import("thebe-core") | undefined; error?: string | undefined; loading: boolean; load: () => void; };