/** * Full-screen loading spinner overlay. * * Renders a spinner element inside the given context and provides methods * to show, hide, and destroy the overlay. */ export default class Loading { /** The root DOM node of the loading overlay. */ protected readonly loadingNode: HTMLDivElement; /** * Creates a loading overlay and appends it to the given context element. * * @param context - The parent DOM element to append the loading overlay into. */ constructor(context: HTMLElement); /** * Returns the HTML string for the loading spinner overlay. * * @returns The loading overlay HTML string. */ protected render(): string; /** * Shows the loading overlay. * * @returns This instance for chaining. */ show(): Loading; /** * Hides the loading overlay. * * @returns This instance for chaining. */ hide(): Loading; /** * Removes the loading overlay DOM node from the document. */ destroy(): void; }