import { TemplateRef, OnDestroy } from '@angular/core'; import { LoadingSource, SkeletonTemplateName } from '../types'; import * as i0 from "@angular/core"; /** * Directiva estructural simplificada para estados de carga. * * Soporta multiples fuentes de estado de carga: * - Angular Signal * - RxJS Observable * - Promise (cargando hasta que se resuelve) * - boolean literal * * @example * * * * * * @example * * * * * * @example * * * * * * * */ export declare class LoadingDirective implements OnDestroy { private readonly templateRef; private readonly viewContainer; private readonly skeletonService; private readonly destroyRef; private readonly _loading; private hasContentView; private skeletonComponentRef; /** Template de skeleton a usar */ skeleton: SkeletonTemplateName | string; /** Template personalizado para skeleton */ skeletonTpl: TemplateRef | null; /** Cantidad de items skeleton */ count: number; /** Animacion habilitada */ animated: boolean; /** Gap entre items */ gap: string | undefined; /** Variante del template */ variant: string | undefined; /** Mostrar spinner en lugar de skeleton */ spinner: boolean; constructor(); /** * Input principal - puede ser boolean, Signal, Observable o Promise. */ set loading(source: LoadingSource); ngOnDestroy(): void; private resolveLoadingSource; private updateView; private showSkeleton; private showSkeletonTemplate; private showSpinner; private showFallback; private showContent; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; }