import { ComponentPath } from '../classes/componentpath'; /** * This iterates through the ComponentDefinition template and calls the callback for each RoomleScript. * @param object the object to modify * @param objectDefinition the ComponentDefinition template to use for the object, most important values are SCRIPT and SCRIPT_MAP * @param path the current path in the object, used for debugging and error messages * @param level the current indentation level, used for formatting; root level is 0 * @param callback the modifier (i.e. format) function that is called for each RoomleScript */ export declare function modifyEachScript(object: any, objectDefinition: any, path: ComponentPath, level: number, callback: ModifyEachScriptCallback): void; /** * This is a callback function type for the modifyEachScript function. * The callback provides the input script, path and indent depth level and returns the modified script. * Wrap this with a function that does more if needed. */ export type ModifyEachScriptCallback = (inputScript: string, path: ComponentPath, indentLevel: number) => string;