// Type definitions for react-blessed 0.3 // Project: https://github.com/yomguithereal/react-blessed#readme // Definitions by: Century Guo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import * as React from 'react'; import { Widgets, screen } from 'blessed'; export type Callback = () => void | null | undefined; export type renderer = ( c: JSX.Element, s: Widgets.Screen, callback?: Callback, ) => React.Component | null; export function render( c: JSX.Element, s: Widgets.Screen, callback?: Callback ): React.Component | null; export function createBlessedRenderer(bls: any): renderer;