/** * 开源许可证列表 */ export declare const LICENSES: readonly ["MIT", "Apache-2.0", "GPL-3.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "Unlicense", "MPL-2.0", "LGPL-3.0", "AGPL-3.0"]; export type LicenseName = typeof LICENSES[number]; /** * 列出所有支持的开源许可证名称 * @returns 许可证名称数组 */ export declare function listLicenses(): LicenseName[]; /** * 根据名称获取许可证内容 * @param name 许可证名称 * @returns 许可证文本内容 * @throws 如果找不到指定的许可证会抛出错误 */ export declare function getLicenseText(name: string): string; declare const _default: { listLicenses: typeof listLicenses; getLicenseText: typeof getLicenseText; LICENSES: readonly ["MIT", "Apache-2.0", "GPL-3.0", "BSD-2-Clause", "BSD-3-Clause", "ISC", "Unlicense", "MPL-2.0", "LGPL-3.0", "AGPL-3.0"]; }; export default _default;