interface GetBEMWithM { (modifier: string | null): string; } declare function GetBEMWithEM(elementVal: string | null): GetBEMWithM; declare function GetBEMWithEM(elementVal: string | null, modifierVal: string | null): string; /** * 获取 BEM 规范的类名 * * @param {string} componentName 组件名称 * @param {string} block 块名称 * @returns {typeof GetBEMWithEM} */ declare function getBEM(componentName: string, block: string): typeof GetBEMWithEM; /** * 获取 BEM 规范的类名 * * @param {string} componentName 组件名称 * @param {string} block 块名称 * @param {(string | null)} element 元素名称 * @returns {GetBEMWithM} */ declare function getBEM(componentName: string, block: string, element: string | null): GetBEMWithM; /** * 获取 BEM 规范的类名 * * @param {string} componentName 组件名称 * @param {string} block 块名称 * @param {(string | null)} element 元素名称 * @param {(string | null)} modifier 修饰符名称 * @returns {string} 类名 */ declare function getBEM(componentName: string, block: string, element: string | null, modifier: string | null): string; export default getBEM;