1 | /// <reference types="react" />
|
2 | export interface Props {
|
3 | /**
|
4 | * Exit (unmount) the whole Ink app.
|
5 | */
|
6 | readonly exit: (error?: Error) => void;
|
7 | }
|
8 | /**
|
9 | * `AppContext` is a React context, which exposes a method to manually exit the app (unmount).
|
10 | */
|
11 | declare const AppContext: import("react").Context<Props>;
|
12 | export default AppContext;
|