import * as _unocss_core from '@unocss/core'; import { Awaitable } from '@unocss/core'; import { CustomIconLoader, InlineCollection, IconCustomizations, UniversalIconLoader } from '@iconify/utils/lib/loader/types'; import { IconifyJSON } from '@iconify/types'; interface IconsOptions { /** * Scale related to the current font size (1em). * * @default 1 */ scale?: number; /** * Mode of generated CSS icons. * * - `mask` - use background color and the `mask` property for monochrome icons * - `background-img` - use background image for the icons, colors are static * - `auto` - smartly decide mode between `mask` and `background-img` per icon based on its style * * @default 'auto' * @see https://antfu.me/posts/icons-in-pure-css */ mode?: 'mask' | 'background-img' | 'auto'; /** * Class prefix for matching icon rules. * * @default `i-` */ prefix?: string | string[]; /** * Extra CSS properties applied to the generated CSS * * @default {} */ extraProperties?: Record; /** * Emit warning when missing icons are matched * * @default false */ warn?: boolean; /** * In Node.js environment, the preset will search for the installed iconify dataset automatically. * When using in the browser, this options is provided to provide dataset with custom loading mechanism. */ collections?: Record Awaitable) | undefined | CustomIconLoader | InlineCollection>; /** * Rule layer * * @default 'icons' */ layer?: string; /** * Custom icon customizations. */ customizations?: Omit; /** * Auto install icon sources package when the usages is detected * * **WARNING**: only on `node` environment, on `browser` this option will be ignored. * * @default false */ autoInstall?: boolean; /** * Custom icon unit. * * @default `em` */ unit?: string; /** * Load icons from CDN. Should starts with `https://` and ends with `/` * * Recommends: * - https://esm.sh/ * - https://cdn.skypack.dev/ */ cdn?: string; /** * Custom fetch function to provide the icon data. */ customFetch?: (url: string) => Promise; } function getDefaultExportFromCjs (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; } var collections = [ "academicons", "akar-icons", "ant-design", "arcticons", "basil", "bi", "bpmn", "brandico", "bx", "bxl", "bxs", "bytesize", "carbon", "charm", "ci", "cib", "cif", "cil", "circle-flags", "circum", "clarity", "codicon", "covid", "cryptocurrency-color", "cryptocurrency", "dashicons", "devicon-line", "devicon-original", "devicon-plain", "devicon", "ei", "el", "emblemicons", "emojione-monotone", "emojione-v1", "emojione", "entypo-social", "entypo", "eos-icons", "ep", "et", "eva", "fa-brands", "fa-regular", "fa-solid", "fa", "fa6-brands", "fa6-regular", "fa6-solid", "fad", "fe", "feather", "file-icons", "flag", "flagpack", "flat-color-icons", "flat-ui", "fluent-emoji-flat", "fluent-emoji-high-contrast", "fluent-emoji", "fluent-mdl2", "fluent", "fontelico", "fontisto", "formkit", "foundation", "fxemoji", "gala", "game-icons", "geo", "gg", "gis", "gridicons", "grommet-icons", "guidance", "healthicons", "heroicons-outline", "heroicons-solid", "heroicons", "humbleicons", "ic", "icomoon-free", "icon-park-outline", "icon-park-solid", "icon-park-twotone", "icon-park", "iconamoon", "iconoir", "icons8", "il", "ion", "iwwa", "jam", "la", "lets-icons", "line-md", "logos", "ls", "lucide", "majesticons", "maki", "map", "material-symbols-light", "material-symbols", "mdi-light", "mdi", "medical-icon", "memory", "meteocons", "mi", "mingcute", "mono-icons", "mynaui", "nimbus", "nonicons", "noto-v1", "noto", "octicon", "oi", "ooui", "openmoji", "pajamas", "pepicons-pencil", "pepicons-pop", "pepicons-print", "pepicons", "ph", "pixelarticons", "prime", "ps", "quill", "radix-icons", "raphael", "ri", "si-glyph", "simple-icons", "simple-line-icons", "skill-icons", "solar", "streamline-emojis", "streamline", "subway", "svg-spinners", "system-uicons", "tabler", "tdesign", "teenyicons", "topcoat", "twemoji", "typcn", "uil", "uim", "uis", "uit", "uiw", "vaadin", "vs", "vscode-icons", "websymbol", "whh", "wi", "wpf", "zmdi", "zondicons" ]; var collections$1 = /*@__PURE__*/getDefaultExportFromCjs(collections); declare function createPresetIcons(lookupIconLoader: (options: IconsOptions) => Promise): _unocss_core.PresetFactory; declare function combineLoaders(loaders: UniversalIconLoader[]): UniversalIconLoader; declare function createCDNFetchLoader(fetcher: (url: string) => Promise, cdnBase: string): UniversalIconLoader; export { type IconsOptions, combineLoaders, createCDNFetchLoader, createPresetIcons, collections$1 as icons };