import Element from "../element"; import Tag from "../tag"; import Program from "../program"; export default class Document extends Element { class_id: any; constructor(content?: string | null); /** * Adds tag to controller instance * * @param {Tag} tag * @memberof Program */ addTag(tag: Tag): this; /** * Adds program to controller instance * * @param {Program} prog * @memberof Program */ addProgram(prog: Program): this; /** * Finds tag in the controller instance that matches the name * * @param {string} name * @returns {Tag|null} * @memberof Program */ findTag(name: string): Tag | null; /** * Finds program in the controller instance that matches the name * * @param {string} name * @returns {Program|null} * @memberof Program */ findProgram(name: string): Program | null; /** * Sets passed element as document target element * --> Only if a valid element subtype * * @param {Element} target * @memberof Document */ setTarget(target: Element): void; /** * Puts the programs children in the correct order * * @private * @memberof Program */ _orderify(): void; /** * Exports document * * @memberof Document */ export(): string; /** * Check if passed object is a document * * @static * @param {object} doc - object to test * @returns {boolean} * @memberof Document */ static isDocument(doc: { class_id: string; }): boolean | ""; }