import * as i0 from '@angular/core'; import { OnChanges, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, InjectionToken, AfterViewChecked, ModuleWithProviders } from '@angular/core'; import { Directionality } from '@angular/cdk/bidi'; import * as i4 from '@ngneat/content-loader'; import { ContentLoaderComponent } from '@ngneat/content-loader'; import * as i3 from '@angular/common'; import * as i5 from '@bravura/ui/common'; /** * Use the [Create React Content Loader](https://skeletonreact.com/) to create your custom skeleton loaders; * * Add the resulting `svg` elements as the content children of a `` component. * * The component `bui-skeleton` extends `content-loader` from [ngneat/content-loader](https://github.com/ngneat/content-loader). * * You can also choose from one of the presets registered by the `SKELETON_PRESETS` injection token. * * The following code snippets demonstrate how to register a preset: * * ```typescript * @import {SkeletonsModule} from '@bravura/ui/skeletons'; * @import htmlWithSvgElements from './custom-loader1.html'; * * @NgModule({ * imports: [SkeletonsModule.forConfig({ presets: { * custom1: { viewBox: '0 0 400 100', content: htmlWithSvgElements } * }})] * }) * export class MyModule {} * ``` * * custom-loader1.html: * * ```html * * * ``` */ declare class SkeletonLoaderComponent extends ContentLoaderComponent implements OnChanges, OnDestroy { private _cdRef; private _dir; private _destroyed$; constructor(elemRef: ElementRef, _cdRef: ChangeDetectorRef, _dir: Directionality); ngOnDestroy(): void; ngOnChanges(changes: SimpleChanges): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } type SkeletonPreset = { viewBox: string; content: string; }; type SkeletonPresets = { [key: string]: SkeletonPreset; }; declare const SKELETON_PRESETS: InjectionToken; declare const DEFAULT_PRESETS: SkeletonPresets; declare class SkeletonLoaderPresetsDirective implements AfterViewChecked { private _skeletonComponent; private _elementRef; /** Select the SVG elements from one of the presets. */ preset?: string; private _allPresets; constructor(_skeletonComponent: SkeletonLoaderComponent, _elementRef: ElementRef, _presetList: SkeletonPresets[]); ngAfterViewChecked(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class SkeletonsModule { static forConfig(config?: { presets?: SkeletonPresets; }): ModuleWithProviders; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export { DEFAULT_PRESETS, SKELETON_PRESETS, SkeletonLoaderComponent, SkeletonLoaderPresetsDirective, SkeletonsModule }; export type { SkeletonPreset, SkeletonPresets };