import { spawnSync } from "node:child_process";
//#region src/tui/tui-fd-path.ts
/** Resolve `fd` binary for pi-tui file autocomplete (`@path`, quoted paths). */
function resolveFdPath() {
	if (process.platform === "win32") return spawnSync("where", ["fd"], { encoding: "utf8" }).stdout?.trim().split(/\r?\n/)[0]?.trim() || null;
	return spawnSync("which", ["fd"], { encoding: "utf8" }).stdout?.trim() || null;
}
//#endregion
export { resolveFdPath };

//# sourceMappingURL=tui-fd-path.js.map