import type { Component } from 'svelte'; import type { ClassValue, SVGAttributes } from 'svelte/elements'; export type SimpleIconPath = string; export interface CustomIcon { path: string; opacity?: number | undefined; } export type IconPath = SimpleIconPath | CustomIcon[]; /** * Keys should match MDI name * e.g. 'account-multiple' for MDI.mdiAccountMultiple */ export declare const IconPathsByName: Record>>; /** * The possible icon names that can be rendered. This is good for typing props. */ export type IconName = keyof typeof IconPathsByName; export type Size = 'xs' | 'sm' | 'base' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl'; export interface IconProps extends Omit, 'cx'> { /** The name of the icon. */ name: IconName; /** The size of the icon. */ size?: Size; /** Additional CSS classes to pass to the svg. */ cx?: ClassValue; }