/*!
This file is part of CycloneDX JavaScript Library.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

SPDX-License-Identifier: Apache-2.0
Copyright (c) OWASP Foundation. All Rights Reserved.
*/
import type { DisjunctiveLicense, License } from '../../models/license';
import { LicenseExpression, NamedLicense, SpdxLicense } from '../../models/license';
/**
 * SPDX License Expression validation.
 *
 * A function that is expected to throw an error if the input is not a valid SPDX License Expression.
 *
 * We suggest one of the following 3rd-party libraries:
 * - `spdx-expression-parse@^3.0.1||^4` - {@link https://www.npmjs.com/package/spdx-expression-parse}
 *
 * @throws {@link Error}
 * Throws an error if the input is not a valid SPDX License Expression.
 */
type SpdxExpressionValidate = (data: string) => void;
export declare class LicenseFactory {
    #private;
    constructor(spdxExpressionValidate: SpdxExpressionValidate);
    makeFromString(value: string): License;
    /**
     * @throws {@link RangeError} if expression is not eligible
     */
    makeExpression(value: string | any): LicenseExpression;
    makeDisjunctive(value: string): DisjunctiveLicense;
    /**
     * @throws {@link RangeError} if value is not supported SPDX id
     */
    makeSpdxLicense(value: string | any): SpdxLicense;
    makeNamedLicense(value: string | any): NamedLicense;
}
export {};
//# sourceMappingURL=factories.d.ts.map