index.d.ts 1.0 KB

1234567891011121314151617181920
  1. export declare const defaultNamespace = "el";
  2. export declare const useNamespace: (block: string) => {
  3. namespace: import("vue").Ref<string>;
  4. b: (blockSuffix?: string) => string;
  5. e: (element?: string | undefined) => string;
  6. m: (modifier?: string | undefined) => string;
  7. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  8. em: (element?: string | undefined, modifier?: string | undefined) => string;
  9. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  10. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  11. is: {
  12. (name: string, state: boolean | undefined): string;
  13. (name: string): string;
  14. };
  15. cssVar: (object: Record<string, string>) => Record<string, string>;
  16. cssVarName: (name: string) => string;
  17. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  18. cssVarBlockName: (name: string) => string;
  19. };
  20. export declare type UseNamespaceReturn = ReturnType<typeof useNamespace>;