/** * OpenTUI requires Bun's native FFI. Node/tsx cannot initialize the renderer. * Prefer re-exec under Bun when available; otherwise fall back with a clear hint. */ export declare function isBunRuntime(): boolean; /** Resolve `bun` on PATH or local clai/bun bin dirs (cross-platform). */ export declare function findBunExecutable(): string | undefined; /** Automatically install Bun into ~/.clai/bin if missing (cross-platform). */ export declare function autoInstallBun(): string | undefined; export declare function openTuiRuntimeHint(): string; /** * If we are not already under Bun, re-launch this process with Bun using the * given entry module (usually `import.meta.url` of index.ts) + original CLI * args, then exit with the child status. Returns false when re-exec is not * possible (caller should fall back / print the hint). * * Pass `entryPath` explicitly — under `tsx`/`npx`, `process.argv[1]` is the * loader, not clai's entry. */ export declare function reexecWithBunIfNeeded(entryPath: string): boolean; export declare function isOpenTuiFfiError(error: unknown): boolean;