/** * Detects the nearest package.json for a file in a monorepo. * Caches lookups per directory to avoid repeated filesystem reads. */ export declare class PackageDetector { private repoRoot; private cache; constructor(repoRoot: string); /** * Find the nearest package.json for a file and return its `name` field. * @param relativePath - File path relative to repo root * @returns Package name (e.g., '@epicdm/flowstate-cli') or undefined */ detect(relativePath: string): string | undefined; /** Clear the internal cache */ clear(): void; } //# sourceMappingURL=package-detector.d.ts.map