export interface PackageLicenseInfo {
    /** License identifiers from package.json (`license` / `licenses`). */
    licenses: string[];
    /** Absolute path to the package directory on disk. */
    path: string;
}
/** Map of `name@version` → license info for the production dependency tree. */
export type PackageLicenseMap = Record<string, PackageLicenseInfo>;
/**
 * Resolves an installed package directory for `name`, walking up from
 * `fromDir` to honor hoisted / pnpm-style layouts.
 */
export declare function resolveInstalledPackageDir(name: string, fromDir: string): string | undefined;
/**
 * Walks the production dependency tree rooted at `startDir` (a package with a
 * package.json) and returns license metadata for every reachable installed
 * package. The root package itself is omitted — only its dependency tree is
 * reported (matches `xy license` "check licenses of dependencies").
 */
export declare function collectProductionLicenses(startDir: string): PackageLicenseMap;
//# sourceMappingURL=collectProductionLicenses.d.ts.map