import type { PolicyShape } from "../policy.js"; /** * Configuration for the CargoLicenceValidated policy. * * @alpha */ export interface CargoLicenceValidatedConfig { /** * Allowed SPDX licence identifiers. If set, only these are accepted. */ allowedLicences?: string[]; /** * If true, validate the licence value against the SPDX licence list * using `spdx-correct`. When enabled, typos like "MIIT" are detected * and can be auto-fixed to the correct identifier ("MIT"). * * Requires the optional peer dependency `spdx-correct` to be installed. * * @defaultValue true */ validateSpdx?: boolean; /** * If true, skip workspace-only Cargo.toml files (those without a [package] section). * * @defaultValue true */ skipWorkspace?: boolean; } /** * A policy that validates the `license` field in Cargo.toml against the SPDX * licence list. Supports auto-fixing correctable identifiers. * * @remarks * Cargo.toml uses a single `license` string field (not an array like Gleam's * `licences`). This policy validates that the value is a recognized SPDX * identifier and can auto-fix common mistakes like wrong casing. * * @alpha */ export declare const CargoLicenceValidated: PolicyShape; //# sourceMappingURL=CargoLicenceValidated.d.ts.map