/** * BEM 类名生成器 * @param block 块名 * @returns 返回 BEM 命名空间的函数 * * @example * const bem = createBEM('ea-alert'); * * // 基础类名 * bem() // 'ea-alert' * bem.b() // 'ea-alert' * bem.cb() // '.ea-alert' * * // 元素类名 (block__element) * bem.e('content') // 'ea-alert__content' * bem.ce('content') // '.ea-alert__content' * * // 修饰符类名 (block--modifier) * bem({ primary: true }) // 'ea-alert ea-alert--primary' * bem({ effect: 'light' }) // 'ea-alert ea-alert--effect-light' * bem.m('primary', 'large') // 'ea-alert--primary ea-alert--large' * bem.cm('primary') // '.ea-alert--primary' * * // 状态类名 (is-state) * bem({}, { center: true }) // 'ea-alert is-center' * bem.s('active', 'disabled') // 'is-active is-disabled' * bem.cs('active') // '.is-active' * * // 组合使用 * bem({ primary: true }, { center: true }) // 'ea-alert ea-alert--primary is-center' */ export declare function createBEM(block: string): { (modifiers?: Record, states?: Record): string; b(): string; cb(): string; e: (elementName: string) => string; ce: (elementName: string) => string; m: (...modifierNames: string[]) => string; cm: (...modifierNames: string[]) => string; s: (...stateNames: string[]) => string; cs: (...stateNames: string[]) => string; }; export default createBEM; //# sourceMappingURL=bem.d.ts.map