import { AfterViewInit, ElementRef } from '@angular/core'; import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; import './pasteGroupModal.component.scss'; /** What the user chose to do about a folder of the same name already there. */ export type PasteResolution = 'suffix' | 'merge'; /** * Asked when "Coller le groupe" lands on a folder that already exists by that * name. * * Only then. A paste that collides with nothing goes straight through — the * user settled that on 2026-08-03: the question is worth a box, the paste * itself is not. * * The three outcomes are offered every time rather than fixed once in the * settings, because the right answer depends on the payload and not on a * preference: the same folder name can mean "I am restoring this from my other * machine" (merge) and "here is a second one like it" (suffix), and no default * gets both right. */ export declare class PasteGroupModalComponent implements AfterViewInit { private modalInstance; /** The colliding folder's name, as it reads in the tree. */ groupName: string; /** What the payload holds, already counted. */ folders: number; profiles: number; /** The name a suffixing paste would use — shown so the choice is not blind. */ suffixedName: string; /** What the purge took out, as a sentence, or empty. */ purged: string; suffixButton: ElementRef; constructor(modalInstance: NgbActiveModal); /** * Focus on the non-destructive answer, deferred by a `setTimeout` like the * confirmation and note modals: NgbModal fades its window in, and focusing * an element still animating in silently does nothing. * * Suffixing is the one that cannot lose anything — merging writes into a * folder that is already there — so it is where `Entrée` lands. */ ngAfterViewInit(): void; choose(resolution: PasteResolution): void; cancel(): void; }