import * as i0 from '@angular/core'; import { OnChanges, SimpleChanges, OnInit } from '@angular/core'; import { SafeHtml } from '@angular/platform-browser'; type IconPrefix = 'las' | 'lab' | 'lar'; type FlipProp = 'horizontal' | 'vertical' | 'both'; type PullProp = 'left' | 'right'; type RotateProp = 90 | 180 | 270; type SizeProp = 'xs' | 'lg' | 'sm' | 'lx' | '1x' | '2x' | '3x' | '4x' | '5x' | '6x' | '7x' | '8x' | '9x' | '10x'; type IconProp = IconName | [IconPrefix, IconName] | IconLookup; type IconName = string; type Styles = Record; interface IconLookup { prefix: IconPrefix; iconName: IconName; } interface Icon { prefix: IconPrefix; iconName: IconName; } interface Transform { size?: number; x?: number; y?: number; rotate?: number; flipX?: boolean; flipY?: boolean; } interface LineAwesomeIcon { name: string; data: string; } declare class LaIconComponent implements OnChanges { private sanitizer; private renderer; private iconRegistry; private stackItem; icon: IconProp; size?: SizeProp; fixedWidth?: boolean; rotate?: RotateProp; flip?: FlipProp; pull?: PullProp; spin?: boolean; pulse?: boolean; border?: boolean; inverse?: boolean; styles?: Styles; classes: string[]; transform?: string | Transform; mask?: IconProp; title?: string; renderedIconHTML: SafeHtml; /** * Specify a title for the icon. * This text will be displayed in a tooltip on hover and presented to the * screen readers. */ get titleAttr(): string | undefined; /** * Programmatically trigger rendering of the icon. * * This method is useful, when creating dynamically or * changing its inputs programmatically as in these cases icon won't be * re-rendered automatically. */ render(): void; ngOnChanges(changes: SimpleChanges): void; protected buildParams(): { title: string | undefined; transform: Transform; classes: string[]; styles: Styles; }; private renderIcon; private svgElementFromString; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; static ngAcceptInputType_fixedWidth: unknown; static ngAcceptInputType_rotate: unknown; static ngAcceptInputType_spin: unknown; static ngAcceptInputType_pulse: unknown; static ngAcceptInputType_border: unknown; static ngAcceptInputType_inverse: unknown; } declare class LaStackComponent implements OnInit, OnChanges { private renderer; private elementRef; /** * Size of the stacked icon. * Note that stacked icon is by default 2 times bigger, than non-stacked icon. * You'll need to set size using custom CSS to align stacked icon with a * simple one. E.g. `la-stack { font-size: 0.5em; }`. */ size?: SizeProp; ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class LaStackItemSizeDirective implements OnChanges { /** * Specify whether icon inside {@link LaStackComponent} should be rendered in * regular size (1x) or as a larger icon (2x). */ stackItemSize: '1x' | '2x'; size?: SizeProp; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class LaIconLibrary { private registry; addIcons(icons: LineAwesomeIcon[]): void; getIcon(icon: Icon): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { LaIconComponent, LaIconLibrary, LaStackComponent, LaStackItemSizeDirective };