common.d.cts 826 B

12345678910111213141516171819
  1. import { IconifyIcon } from '@iconify/types';
  2. import { IconCSSCommonCodeOptions, IconCSSItemOptions, IconContentItemOptions } from './types.cjs';
  3. /**
  4. * Generates common CSS rules for multiple icons, rendered as background/mask
  5. */
  6. declare function getCommonCSSRules(options: IconCSSCommonCodeOptions): Record<string, string>;
  7. /**
  8. * Generate CSS rules for one icon, rendered as background/mask
  9. *
  10. * This function excludes common rules
  11. */
  12. declare function generateItemCSSRules(icon: Required<IconifyIcon>, options: IconCSSItemOptions): Record<string, string>;
  13. /**
  14. * Generate content for one icon, rendered as content of pseudo-selector
  15. */
  16. declare function generateItemContent(icon: Required<IconifyIcon>, options: IconContentItemOptions): string;
  17. export { generateItemCSSRules, generateItemContent, getCommonCSSRules };