import type { ExecutableExpression } from "@hylimo/core"; import { InterpreterModule } from "@hylimo/core"; /** * Identifier for the scope variable */ export declare const SCOPE = "scope"; /** * An jsonata expression which assigns the prediction class to an element if the prediction is true */ export declare const PREDICTION_STYLE_CLASS_ASSIGNMENT_EXPRESSION: string; /** * Creates a toolbox edit based on the provided createElementCode. * Depending on the `enableDragging` parameter, it will add a layout function to the edit. * * @param createElementCode the code which creates the element, expected to return a CanvasElement, i.e. `class("Example")`. Dedented, NOT escaped * @param enableDragging whether the element should be draggable * @returns the text for the toolbox edit */ export declare function createToolboxEdit(createElementCode: string, enableDragging?: boolean): string; /** * Creates a toolbox edit which is registered in `scope.internal.canvasAddEdits` * * @param edit the name of the edit, implicitly prefixed with `toolbox/`. To be added correctly to the toolbox, follow the format `Group/Name`, so i.e. `Class/Class with nested class`. * @param createElementCode the code which creates the element, expected to return a CanvasElement, i.e. `class("Example")`. Dedented, NOT escaped * @param enableDragging whether the element should be draggable * @returns the executable expression which creates the toolbox edit */ export declare function createToolboxEditExpression(edit: string, createElementCode: string, enableDragging?: boolean): ExecutableExpression; /** * Module which provides common DSL functionality */ export declare const dslModule: InterpreterModule; //# sourceMappingURL=dslModule.d.ts.map