import Modal from '~/components/Modal'; /** * Modal dialog for displaying error messages. * * Extends {@link Modal} with an error message display area. * Used to show critical errors such as PDF loading failures. */ export default class ErrorModal extends Modal { /** The element that displays the error message text. */ private readonly message; /** * Creates an error modal and appends it to the given context element. * * @param context - The parent DOM element to append the modal into. */ constructor(context: HTMLElement); /** * Returns the HTML string for the error modal content. * * @returns The error modal HTML string. */ protected render(): string; /** * Displays the error modal with the specified message. * * @param message - The error message to display. * @returns This instance for chaining. */ show(message?: string): ErrorModal; }