import { Observable } from 'rxjs'; import * as i0 from '@angular/core'; import { ViewContainerRef, AfterViewInit, OnDestroy, ComponentRef, Type, ChangeDetectorRef, ComponentFactoryResolver, ApplicationRef, Injector } from '@angular/core'; /** * Configuration for a dialog to open. */ declare class TbxDialogConfig { /** The data to provide to the dialog. */ data?: unknown; /** * Indicates to display a transparent backdrop if true. Alternative, * 'static' will display the backdrop and won't close the dialog * on click. */ backdrop?: boolean | "static"; } /** * A reference to the dialog component instance. */ declare class TbxDialogRef { /** * An event raised after the component has been closed. If you subscribe * to this observable, it's completed after emit, so there's no need * to unsubscribe. */ closed: Observable; private readonly closedInternal; constructor(); /** * Closes the component passing an optional result and closes the stream. * @param result An optional result to send back after closing. */ close(result?: unknown): void; } declare class TbxInsertionDirective { viewContainerRef: ViewContainerRef; constructor(viewContainerRef: ViewContainerRef); static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } declare class TbxDialogComponent implements AfterViewInit, OnDestroy { private readonly cd; private readonly dialogRef; private readonly dialogConfig; insertionPoint: TbxInsertionDirective; componentRef?: ComponentRef; childComponentType: Type; closed: Observable; showBackdrop: boolean; private readonly closeInternal; constructor(cd: ChangeDetectorRef, dialogRef: TbxDialogRef, dialogConfig: TbxDialogConfig); ngAfterViewInit(): void; onOverlayClicked(_: MouseEvent): void; onDialogClicked(evt: any): void; loadChildComponent(componentType: Type): void; ngOnDestroy(): void; close(value: any): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } declare class TbxDialogService { private readonly componentFactoryResolver; private readonly appRef; private readonly injector; dialogComponentRef: ComponentRef; constructor(componentFactoryResolver: ComponentFactoryResolver, appRef: ApplicationRef, injector: Injector); open(componentType: Type, config: TbxDialogConfig): TbxDialogRef; private appendDialogComponentToBody; private removeDialogComponentFromBody; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export { TbxDialogComponent, TbxDialogConfig, TbxDialogRef, TbxDialogService };