export as namespace ReactLive; import { Component, StatelessComponent, HTMLAttributes } from 'react'; export type LiveProviderProps = { className?: string; style?: HTMLAttributes['style']; scope?: { [key: string]: any }; code?: any; mountStylesheet?: boolean; noInline?: boolean; transformCode?: (code: string) => string; } export class LiveProvider extends Component{} export type LiveEditorProps = { className?: string; onChange?: (code: string) => void style?: HTMLAttributes['style']; onClick?: HTMLAttributes['onClick']; onKeyDown?: HTMLAttributes['onKeyDown']; onKeyUp?: HTMLAttributes['onKeyUp']; onMouseOver?: HTMLAttributes['onMouseOver']; onMouseOut?: HTMLAttributes['onMouseOut']; onFocus?: HTMLAttributes['onFocus']; onBlur?: HTMLAttributes['onBlur']; } export function LiveEditor(props: LiveEditorProps): JSX.Element export function LiveError(props: HTMLAttributes): JSX.Element export function LivePreview(props: HTMLAttributes): JSX.Element export type EditorProps = HTMLAttributes & { ignoreTabKey?: boolean; } export class Editor extends Component{} export function withLive(wrappedComponent: T): Component