/** * `useApp` is a React hook that exposes a method to manually exit the app * (unmount). * * @example * ```tsx * import {render, useApp, useInput} from 'tinky'; * * const Component = () => { * const {exit} = useApp(); * * useInput((input) => { * if (input === 'q') { * exit(); * } * }); * * return null; * }; * * render(); * ``` * * @returns The app context containing the `exit` function. */ export declare const useApp: () => import("../index.js").AppProps;