import { OnInit } from '@angular/core'; import { PopupDirective } from '../directives'; import { PopupAdvancedActions, PopupBaseActions, PopupProps } from '../directives'; import * as i0 from "@angular/core"; /** * @TailwindNG Dialog component interface. */ export interface Dialog extends PopupProps, PopupBaseActions, PopupAdvancedActions { /** * Whether the dialog should close automatically after the given `displayDuration`. * Default is `false`. */ readonly autoClose: boolean; /** * Whether to automatically focus the dialog's primary action when its open. * If no primary action button is found, the dialog's icon (if any), will be focused instead. * Default is `true`. */ readonly autoFocus: boolean; /** * The delay to display the dialog before it auto closes. Only applicable if `autoClose` is `true`. * - Range in milliseconds: `[min: 1000, max: 10000]`; Default is `2000`. * - If the given delay is outside this range, the default delay will be used. */ readonly displayDelay?: number; /** * Whether the dialog is modal. If `true`, the dialog will be modal and will prevent any interaction with the rest of the page. * Default is `true`. */ readonly isModal: boolean; } export interface DialogConfig { scrim: string; container: string; backdrop: string; } export declare const DIALOG_CONFIG: import("@angular/core").InjectionToken>; export declare abstract class DialogBase extends PopupDirective implements Dialog, OnInit { isModal: boolean; displayDelay?: number; autoClose: boolean; autoFocus: boolean; restoreFocus: boolean; ngOnInit(): void; private primaryAction; private primaryActionQueried; protected focusPrimaryAction(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } /** * Checks if the component is a Dialog. * If so, you can safely access the Dialog members inside this block scope. */ export declare function isDialog(component: unknown): component is Dialog;