/** * A single icon. Fields match IconifyIcon: the SVG body without the root `` * plus its own viewBox, so the format also fits multicolor icons drawn on other grids. */ export interface IconData { /** Identifier, e.g. `las-star`. */ readonly name: string; /** Contents of ``, without the element itself. */ readonly body: string; readonly width: number; readonly height: number; readonly left?: number; readonly top?: number; /** Monochrome icons are painted with `currentColor`; multicolor icons keep their own colors. */ readonly mono: boolean; } export interface SvgOptions { /** Icon height; width follows the viewBox aspect ratio. Defaults to `1em`. */ size?: number | string; /** Accessible name. Without it the icon is decorative and hidden from screen readers. */ title?: string; } /** Attributes of the root ``. */ export declare function svgAttrs(icon: IconData, { size, title }?: SvgOptions): Record; /** Contents of ``: a `` tooltip when given, then the icon body. */ export declare function svgInner(icon: IconData, title?: string): string; /** A ready `…` string, for framework-free code. */ export declare function toSvgString(icon: IconData, options?: SvgOptions): string;