export type WorkspaceManifest = "package.json" | "pnpm-workspace.yaml"; export interface DetectedWorkspace { /** Absolute path of the directory holding the workspace manifest. */ directory: string; manifest: WorkspaceManifest; } /** * Looks for a workspace manifest in `containingDirectory` and its ancestors -- * that is, the directory the new package will be created inside, not the * package directory itself. * * The search is bounded by the enclosing Git repository: a monorepo is a * repository in practice, and stopping at its root keeps an unrelated * `package.json` higher up the filesystem (a home directory, say) from being * mistaken for the workspace. Returns undefined when the directory is not * inside a repository at all. */ export declare const detectWorkspaceRoot: (containingDirectory: string) => Promise; //# sourceMappingURL=workspace-detection.d.ts.map