import cls, { Argument } from 'classnames'; /** * 高阶函数,第一返回值创建模块前缀(是否添加基本前缀),第二返回值为样式添加模块前缀 * @param tag * @param props * @example * const basePrefix = usePrefixCls('', { base: true }); * const proPrefixCls = usePrefixCls('teamix-pro'); * const antPrefixCls = usePrefixCls('teamix-pro', { prefix: 'ant-' }); * basePrefix('small'); // 'next-small' * proPrefixCls('small'); // 'teamix-pro-small' * proPrefixCls({ '': true, small: true }); // 'teamix-pro teamix-pro-small' * antPrefixCls('one', { small: true }); // 'ant-teamix-pro-one ant-teamix-pro-small' * @returns string */ declare const usePrefixCls: (tag?: string, props?: { base?: boolean; prefix?: string; }) => (...args: Argument[]) => string; export { usePrefixCls, cls };