import React, { ErrorInfo } from 'react'; import { AppContext, AppProps } from 'ink'; import * as t from 'io-ts'; import { Maybe } from 'brookjs-types'; import { Command } from './Command'; export declare const ExplosiveBullet: React.FC<{ message: string; }>; export declare const LoadDirError: React.FC<{ dir: string; error: Error; }>; export declare const CommandValidationError: React.FC<{ name: string; errors: t.Errors; }>; export declare const Root: React.FC<{ command: Maybe>; argv: string[]; args: any; cwd: string; rc: unknown; errors: React.ReactNode[]; }>; declare type ErrorState = { error: null | Error; errorInfo: null | ErrorInfo; }; export default class ErrorBoundary extends React.Component<{}, ErrorState, AppProps> { state: ErrorState; static contextType: React.Context; context: React.ContextType; componentDidCatch(error: Error, errorInfo: ErrorInfo): void; render(): {} | null | undefined; } export {};