import type { AgentCliConfig, AgentYesConfig } from "./index.ts"; type Awaitable = T | Promise; export async function defineCliYesConfig( cfg: Awaitable | ((original: T) => Awaitable), ) { if (typeof cfg === "function") cfg = await cfg({ clis: {} } as T); return cfg as unknown as Omit & { clis: Record; }; }