import { ConfigurableFocusTrapFactory } from '@angular/cdk/a11y'; import { ElementRef, EventEmitter, OnDestroy, OnInit, Renderer2 } from '@angular/core'; import { DialogButtons } from '../modal.types'; import * as i0 from "@angular/core"; export interface DialogEvent { original: Event | undefined; payload: T | undefined; } export declare class NggvDialogComponent implements OnInit, OnDestroy { private renderer; private ref; private configurableFocusTrapFactory; private configurableFocusTrap; dialogRef: ElementRef | undefined; /** Special property used for selecting DOM elements during automated UI testing. */ thook: string | null | undefined; /** @internal */ baseClass: boolean; /** @internal Defines the default visibility state of the dialog. */ private _shown; set shown(value: boolean); get shown(): boolean; /** @internal */ get ariaHidden(): boolean; /** Defines the default visibility state of the dialog. */ initiallyShown: boolean; /** Sets modal heading. Will be translated (using transloco) if the string matches a cms key. */ heading: string; /** * Sets modal title. Will be translated (using transloco) if the string matches a cms key. * @deprecated - use heading instead. */ title: string; /** Sets content body and can contain html code. The content body can also be set by nesting children to the dialog tag. */ content?: string; /** Defines if dialog should close on action. */ autoClose: boolean; /** An array of event payloads that will be added to every click context menu item click. */ payload: any; dialogTitleId: string; /** Pass the null if you don't want dialog body to be announced by the screen reader */ dialogBodyId: string | null; /** It gives an ability for parent component to control if modal should be closed on esc button click. */ closeModalOnEscape: boolean; /** Aria label for the Close button with "X" icon, in the header */ closeButtonAriaLabel?: string; _buttons: DialogButtons | undefined; /** Buttons are defined as a key-value pair where key is one of "positive|neutral|negative" and value is the button label. */ set buttons(buttons: DialogButtons); nggvCloseEvent: EventEmitter>; nggvPositiveEvent: EventEmitter>; nggvNeutralEvent: EventEmitter>; nggvNegativeEvent: EventEmitter>; nggvDangerEvent: EventEmitter>; protected _previous: HTMLElement | undefined; protected _firstFocusable: HTMLElement | undefined; protected _lastFocusable: HTMLElement | undefined; constructor(renderer: Renderer2, ref: ElementRef, configurableFocusTrapFactory: ConfigurableFocusTrapFactory); ngOnInit(): void; onAction(event: Event, action: string): void; open(opener?: HTMLElement): boolean; protected _limitFocusable(): void; close(event?: Event, initiator?: string): void; focusTrap(event: KeyboardEvent): void; private hideOverflow; private resetOverflow; private enableFocusTrap; private disableFocusTrap; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }