export type ManifestSkipReason = "package.json exists" | "foreign manifest"; export interface CreateProjectManifestResult { created: boolean; path: string; /** The package name written, when a manifest was created. */ name?: string; reason?: ManifestSkipReason; /** The file that made this directory look like another ecosystem. */ foreignManifest?: string; } /** * Derive a valid npm package name from a directory name. npm allows lowercase * letters, digits, and `-._`, and forbids a leading `.` or `_`. */ export declare function toPackageName(directoryName: string): string; /** * Write a minimal placeholder package.json so a brand-new project can pin the * pipeline as a devDependency. Deliberately not `npm init --yes`: that writes a * stub `test` script that fails by design, which `init` would then pick up as a * verify command and every build would fail on it. */ export declare function createProjectManifest(cwd: string): Promise; //# sourceMappingURL=project-manifest.d.ts.map