import { CLI } from "./public-api.mjs"; import { Expand } from "@cli-forge/parser"; //#region src/lib/utils.d.ts declare function getCallingFile(): string | undefined; declare function getParentPackageJson(searchPath: string): { name: string; version: string; bin?: { [cmd: string]: string; }; dependencies?: Record; }; declare function stringToArgs(str: string): string[]; /** * Resolves the arguments added to a CLI instance by a builder function. Useful * for typing the arguments of a command handler when using composable builders. * * @typeParam T - A function that takes a CLI instance and returns a new CLI instance with additional options, commands etc. */ type ArgumentsOf = T extends ((...args: any[]) => CLI) ? Expand : never; //#endregion export { ArgumentsOf, getCallingFile, getParentPackageJson, stringToArgs }; //# sourceMappingURL=utils.d.mts.map