import * as i0 from '@angular/core'; import { OnDestroy, ElementRef, Type, OnInit, ComponentFactoryResolver, ViewContainerRef, Renderer2 } from '@angular/core'; import { ThemeColor } from '@kirbydesign/core'; import { LineClampHelper } from '@kirbydesign/designsystem/helpers'; /** * Factory that creates a new ResizeObserver and allows us to stub it out in unit tests. * @docs-private */ declare class ResizeObserverFactory { create(callback: ResizeObserverCallback): ResizeObserver | null; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ResizeObserverService implements OnDestroy { private _resizeObserverFactory; private observer; private observedElements; constructor(_resizeObserverFactory: ResizeObserverFactory); observe(elementOrRef: Element | ElementRef, action: (entry: ResizeObserverEntry) => void): void; ngOnDestroy(): void; unobserve(elementOrRef: Element | ElementRef): void; private handleResize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare class ThemeColorDirective { private _isDefault; get isDefault(): boolean; private _isPrimary; get isPrimary(): boolean; private _isSecondary; get isSecondary(): boolean; private _isTertiary; get isTertiary(): boolean; private _isSuccess; get isSuccess(): boolean; private _isWarning; get isWarning(): boolean; private _isDanger; get isDanger(): boolean; private _isLight; get isLight(): boolean; private _isMedium; get isMedium(): boolean; private _isDark; get isDark(): boolean; private _isWhite; get isWhite(): boolean; private _isBrightnessWhite; get isBrightnessWhite(): boolean; private _isBrightnessLight; get isBrightnessLight(): boolean; private _isBrightnessDark; get isBrightnessDark(): boolean; set themeColor(value: ThemeColor); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface ComponentConfiguration { component: Type; data: any; } declare class ComponentLoaderDirective implements OnInit { private componentFactoryResolver; private viewContainerRef; private renderer; configuration: ComponentConfiguration; cssClass: string; constructor(componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, renderer: Renderer2); ngOnInit(): void; loadCard(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } interface DynamicComponent { data: any; } interface FitHeadingConfig { maxLines: number; } declare class FitHeadingDirective implements OnInit, OnDestroy { private elementRef; private renderer; private resizeObserverService; private lineClampHelper; config?: FitHeadingConfig; private isObservingHostElement; private hostElementClone; private isScalingHeader; private headingSizes; constructor(elementRef: ElementRef, renderer: Renderer2, resizeObserverService: ResizeObserverService, lineClampHelper: LineClampHelper); ngOnInit(): void; ngOnDestroy(): void; private observeResize; private scaleHeader; private canFitHeading; private generateHostElementClone; private setSize; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare function findItemLabel(element: HTMLElement): HTMLElement; declare function setAccessibleLabel(element: HTMLElement): string; declare function inheritAriaLabelText(element: HTMLElement): string; /** * Forwards specified attributes from a source element to a target element. * * @param sourceElement - The HTML element from which attributes will be removed from. * @param attributes - An array of attribute names to inherit from the source element. * @param renderer - An instance of Angular's Renderer2. * @param targetElement - (Optional) The HTML element to which the attributes should be applied. * If not provided, the attributes will only be removed from the source element. * * @returns A record of the inherited attributes and their values. If no attributes are inherited, an empty object is returned. */ declare function forwardAttributes(sourceElement: HTMLElement, attributes: string[], renderer: Renderer2, targetElement?: HTMLElement): Record; interface Translation { $code: string; back: string; close: string; nextMonth: string; nextSlide: string; previousMonth: string; previousSlide: string; selectYear: string; readMore: string; more: string; characters: string; outOf: string; entered: string; } declare class TranslationService { private localeId; private activeTranslation; private translations; constructor(localeId: string); private setActiveTranslation; get(key: keyof Translation): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { ComponentLoaderDirective, FitHeadingDirective, ResizeObserverFactory, ResizeObserverService, ThemeColorDirective, TranslationService, findItemLabel, forwardAttributes, inheritAriaLabelText, setAccessibleLabel }; export type { ComponentConfiguration, DynamicComponent, FitHeadingConfig }; //# sourceMappingURL=kirbydesign-designsystem-shared.d.ts.map