import { AfterViewInit, ElementRef } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; /** * Small yes/no modal, HTML/Bootstrap rather than a native OS dialog — * `platform.showMessageBox()` is a system confirm box, which is exactly what * every confirmation in this plugin is meant to avoid (piège #42). */ export declare class ConfirmModalComponent implements AfterViewInit { private modalInstance; message: string; confirmLabel: string; danger: boolean; /** Which button `Entrée` activates. The caller decides — this component has no opinion on how destructive its own confirmation is — and the fallback is the harmless answer. */ defaultButton: 'confirm' | 'cancel'; confirmButton: ElementRef; cancelButton: ElementRef; constructor(modalInstance: NgbActiveModal); /** * Puts the focus where `defaultButton` says, so `Entrée` activates it — * with 'confirm', `Suppr` then `Entrée` is one gesture (user request, * 2026-07-30, made configurable right after). * * Deferred by a `setTimeout`: NgbModal fades its window in, and focusing * an element that is still animating in silently does nothing. `Échap` * cancels either way, through NgbModal's own dismiss. */ ngAfterViewInit(): void; confirm(): void; cancel(): void; }