UNPKG

@manuth/woltlab-compiler

Version:

A compiler for generating WoltLab-Package `.tar` Archives and other WoltLab-Package Components

38 lines (37 loc) 976 B
import { WoltLabXMLCompiler } from "./WoltLabXMLCompiler.js"; /** * Provides the functionality to compile files with an import- and a delete-section. * * @template T * The type of the item which can be compiled by this compiler. */ export declare abstract class ImportFileCompiler<T> extends WoltLabXMLCompiler<T> { /** * Initializes a new instance of the {@link ImportFileCompiler `ImportFileCompiler<T>`} class. * * @param item * The item to compile. */ constructor(item: T); /** * @inheritdoc * * @returns * The serialized document. */ protected CreateDocument(): Document; /** * Serializes the import-section of the document. * * @returns * The serialized import. */ protected CreateImport(): Element; /** * Serializes the delete-section of the document. * * @returns * The serialized deletion. */ protected CreateDelete(): Element; }