/** The folder `arg` names, without characters a folder can't have or trailing slashes. */ export declare function formatTargetDir(arg: string): string; export declare function isValidPackageName(name: string): boolean; /** `name` as a valid package name, or '' when nothing usable remains. The * scope and the name are cleaned separately, so a scope is never lost. */ export declare function toValidPackageName(name: string): string; /** The package name for the folder `targetDir`: the folder itself when it is * `@scope/name`, else its last segment. Either may not be valid yet. */ export declare function packageNameFor(targetDir: string, cwd: string): string; //# sourceMappingURL=names.d.ts.map