import { ComponentRef, TemplateRef, ComponentFactoryResolver, ViewContainerRef, OnDestroy } from '@angular/core'; import { Portal, TemplatePortal, ComponentPortal, BasePortalHost } from './portal'; import * as i0 from "@angular/core"; /** * Directive version of a `TemplatePortal`. Because the directive *is* a TemplatePortal, * the directive instance itself can be attached to a host, enabling declarative use of portals. * * Usage: * *

Hello {{name}}

*
*/ export declare class TemplatePortalDirective extends TemplatePortal { constructor(templateRef: TemplateRef, viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Directive version of a PortalHost. Because the directive *is* a PortalHost, portals can be * directly attached to it, enabling declarative use. * * Usage: * */ export declare class PortalHostDirective extends BasePortalHost implements OnDestroy { private _componentFactoryResolver; private _viewContainerRef; /** The attached portal. */ private _portal; constructor(_componentFactoryResolver: ComponentFactoryResolver, _viewContainerRef: ViewContainerRef); /** @deprecated */ get _deprecatedPortal(): Portal; set _deprecatedPortal(v: Portal); /** Portal associated with the Portal host. */ get portal(): Portal; set portal(portal: Portal); ngOnDestroy(): void; /** * Attach the given ComponentPortal to this PortalHost using the ComponentFactoryResolver. * * @param portal Portal to be attached to the portal host. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; /** * Attach the given TemplatePortal to this PortlHost as an embedded View. * @param portal Portal to be attached. */ attachTemplatePortal(portal: TemplatePortal): Map; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class PortalModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; }