import Element from "../element"; import Tag from "../tag"; import Routine from "../routine"; export default class Program extends Element { class_id: string; constructor(name: string, description?: null, safety?: boolean); /** * Adds tag to program instance * * @param {Tag} tag * @memberof Program */ addTag(tag: Tag): this; /** * Adds routine to program instance * * @param {any} routine * @memberof Program */ addRoutine(routine: Routine): this; /** * Finds tag in the program instance that matches the name * * @param {string} name * @returns {Tag|null} * @memberof Program */ findTag(name: string): Tag | null; /** * Finds routine in the program instance that matches the name * * @param {string} name * @returns {Routine|null} * @memberof Program */ findRoutine(name: string): Routine | null; /** * Puts the programs children in the correct order * * @private * @memberof Program */ _orderify(): void; /** * Checks if an incoming object is a program instance * * @static * @param {any} program * @returns {boolean} * @memberof Tag */ static isProgram(program: { class_id: string; }): boolean | ""; }