import React from 'react'; import type { RedirectTarget } from '../utils/unpublishRedirectTargets.js'; import type { UnpublishChildPages } from '../utils/unpublishChildPages.js'; export interface UnpublishConfirmModalProps { /** The page's route, e.g. `/about`. */ route: string; /** The site's host, shown before the route. */ siteHost: string; /** Pages visitors can be sent to instead; the first is preselected. */ redirectTargets?: RedirectTarget[]; /** The live pages under this one, and its translations, which the dialog offers to take down too. */ childPages?: UnpublishChildPages; onConfirm: (redirectTo: string | undefined, childDocumentIds: string[], translationDocumentIds: string[]) => void; onClose: () => void; } /** Asks before taking a page down from live. Mount it only while open, so each opening starts from the first target. */ export declare function UnpublishConfirmModal({ route, siteHost, redirectTargets, childPages, onConfirm, onClose, }: UnpublishConfirmModalProps): React.ReactElement;