import { CommandTypesBase } from "../types/command.mjs";
//#region src/extension/ink.d.ts
/** Checks whether a value is a React element (JSX) by inspecting its `$$typeof` symbol. */
declare function isReactElement(value: unknown): boolean;
type InkOptions = {
/** Whether to wait for the Ink app to unmount before resolving. Defaults to `true`. */waitUntilExit?: boolean; /** Options forwarded to Ink's `render()`. */
render?: import('ink').RenderOptions;
};
/**
* Extension that renders React (Ink) components returned from command actions.
*
* When a command's action returns a React element (JSX), this extension
* renders it using Ink instead of passing it to the normal output path.
*
* Requires `ink` and `react` as peer dependencies.
*
* ```ts
* import { createPadrone } from 'padrone';
* import { padroneInk } from 'padrone/ink';
*
* const program = createPadrone('my-tui')
* .extend(padroneInk())
* .command('dashboard', (c) =>
* c.action(() => )
* );
* ```
*/
declare function padroneInk(options?: InkOptions): (builder: T) => T;
//#endregion
export { InkOptions, isReactElement, padroneInk };
//# sourceMappingURL=ink.d.mts.map