import { OnInit, ElementRef, ApplicationRef, ComponentFactoryResolver, Injector, ViewContainerRef, NgZone, OnDestroy, ChangeDetectorRef } from '@angular/core';
import { HttpClient, HttpErrorResponse } from '@angular/common/http';
import { ContentRenderer } from '../content-renderer';
import { TocService } from '../../services/toc.service';
import * as i0 from "@angular/core";
export declare class ContentViewerComponent extends ContentRenderer implements OnInit, OnDestroy {
    elementRef: ElementRef<HTMLElement>;
    private appRef;
    private componentFactoryResolver;
    private injector;
    private viewContainerRef;
    private ngZone;
    private tocService;
    private cdr;
    private portalHosts;
    constructor(http: HttpClient, elementRef: ElementRef<HTMLElement>, appRef: ApplicationRef, componentFactoryResolver: ComponentFactoryResolver, injector: Injector, viewContainerRef: ViewContainerRef, ngZone: NgZone, tocService: TocService, cdr: ChangeDetectorRef);
    ngOnInit(): void;
    updateDocument(content: string): void;
    updateTableOfContents(docViewerContent: HTMLElement): void;
    private loadComponents;
    /** Show an error that occurred when fetching a document. */
    showError(url: string, error: HttpErrorResponse): void;
    private clearLiveExamples;
    ngOnDestroy(): void;
    static ɵfac: i0.ɵɵFactoryDeclaration<ContentViewerComponent, never>;
    static ɵcmp: i0.ɵɵComponentDeclaration<ContentViewerComponent, "dg-content-viewer", never, {}, {}, never, never, false, never>;
}
//# sourceMappingURL=content-viewer.component.d.ts.map