export type PackageJsonSection = 'dependencies' | 'optionalDependencies' | 'peerDependencies' | 'overrides' | 'resolutions'; export type PackageViolation = { /** The declared name; for an override, its key path joined with ` > `. */ name: string; section: PackageJsonSection; reason: 'not-allowed' | 'alias-not-allowed' | 'non-registry-source'; specifier: string; }; /** * The package.json entries outside `allowedPackages`, in file order. Entries are exact names or * `@scope/*`; `@redocly/*` is always allowed. `devDependencies` are not checked: gated builds do * not install them. Returns `[]` for a value that is not an object. */ export declare function findDisallowedPackages(packageJson: unknown, allowedPackages: readonly string[]): PackageViolation[]; export declare function describePackageViolation({ name, section, reason, specifier, }: PackageViolation): string; //# sourceMappingURL=find-disallowed-packages.d.ts.map