import type { RuleModule } from '../../types'; /** * Validate that all packages in a lockfile are from allowed hosts. * Prevents supply chain attacks where an attacker modifies the lockfile * to point packages to malicious registries. * * Options: * - allowedHosts: Array of allowed hostnames or aliases ('npm', 'yarn', 'verdaccio') * - emptyHostname: Whether to allow packages with empty/missing resolved URLs (default: true) * * Example config: * ```ts * pluginRules: { * 'lockfile/validate-host': ['error', { allowedHosts: ['npm', 'yarn'] }] * } * ``` */ export declare const validateHost: RuleModule;