import { type ComponentRef, type EmbeddedViewRef, type TemplateRef } from '@angular/core';
import { PolymorpheusComponent } from '@taiga-ui/polymorpheus';
import { type TuiPortals } from './portals';
import * as i0 from "@angular/core";
export declare abstract class TuiPortalService {
    protected host?: TuiPortals;
    attach(host: TuiPortals): void;
    add<C>(content: PolymorpheusComponent<C>): ComponentRef<C>;
    add<C>(content: TemplateRef<C>, context?: C): EmbeddedViewRef<C>;
    static ɵfac: i0.ɵɵFactoryDeclaration<TuiPortalService, never>;
    static ɵprov: i0.ɵɵInjectableDeclaration<TuiPortalService>;
}
export declare class TuiNoHostException extends Error {
    constructor();
}
