import type { ConfigError } from '../core/errors.js'; import type { Result } from '../core/result.js'; /** * Load an allowed-packages JSON file from disk and return the set of package names. * I/O adapter — reads from the file system. * * The file must contain a JSON array of package name strings, e.g.: * ["@scope/pkg-a", "@scope/pkg-b"] * * @param workspaceRoot - Absolute path to the workspace root. * @param filePath - Path to the allowlist file, relative to workspaceRoot. * @returns A Result containing the set of allowed package names, or a ConfigError. */ export declare function loadAllowedPackages(workspaceRoot: string, filePath: string): Promise, ConfigError>>; /** * Validate that parsed JSON is a non-empty array of strings. * * @param parsed - The parsed JSON content to validate * @param filePath - The path to the file (for error messages) * @returns A Result containing a Set of allowed package names, or a ConfigError if validation fails */ export declare function validateAllowlistContent(parsed: unknown, filePath: string): Result, ConfigError>;