/** * 全局样式处理命名空间 * * @export * @class Namespace */ export declare class Namespace { protected block: string; /** * 命名空间 * * @type {string} */ readonly namespace: string; /** * Creates an instance of Namespace. * * @param {string} block 当前命名空间的根模块,例如组件的名称 * @param {string} [namespace] 指定命名空间,未指定使用默认值 gct */ constructor(block: string, namespace?: string); /** * namespace-block * namespace-block-blockSuffix * * @param {string} [blockSuffix=''] * @return {*} {string} */ b(blockSuffix?: string): string; /** * namespace-block__element * * @param {string} [element] * @return {*} {string} */ e(element?: string): string; /** * namespace-block--modifier * * @param {string} [modifier] * @return {*} {string} */ m(modifier?: string): string; /** * namespace-block-blockSuffix__element * * @param {string} [blockSuffix] * @param {string} [element] * @return {*} {string} */ be(blockSuffix?: string, element?: string): string; /** * namespace-block__element--modifier * * @param {string} [element] * @param {string} [modifier] * @return {*} {string} */ em(element?: string, modifier?: string): string; /** * namespace-block-blockSuffix--modifier * * @param {string} [blockSuffix] * @param {string} [modifier] * @return {*} {string} */ bm(blockSuffix?: string, modifier?: string): string; /** * namespace-block-blockSuffix__element--modifier * * @param {string} [blockSuffix] * @param {string} [element] * @param {string} [modifier] * @return {*} {string} */ bem(blockSuffix?: string, element?: string, modifier?: string): string; /** * 返回状态 class * * is('loading', false) => ''; * is('loading', true) => 'is-loading'; * * @param {string} name * @param {boolean} [state] * @return {*} {string} */ is(name: string, state?: boolean): string; /** * 生成使用到的 css 变量 style 对象 * * @param {Record} object * @return {*} {Record} */ cssVar(object: Record): Record; /** * 生成使用到的 css block 变量 style 对象 * * @param {Record} object * @return {*} {Record} */ cssVarBlock(object: Record): Record; /** * 生成 css var 变量名称 * * @param {string} name * @return {*} {string} */ cssVarName(name: string): string; /** * 生成块 css var 变量名称 * * @param {string} name * @return {*} {string} */ cssVarBlockName(name: string): string; }