import { State } from '../shared/State'; export type IdmScript = { /** * Compile a JS script * @returns {Promise} a promise resolving to 'true' or an error message */ compileScript(script: string): Promise; /** * Run a JS script * @returns {Promise} a promise resolving to the script result */ evaluateScript(script: string, globals?: { [key: string]: any; }): Promise; }; declare const _default: (state: State) => IdmScript; export default _default; export declare function compileScript({ script, state, }: { script: string; state: State; }): Promise; export declare function evaluateScript({ script, globals, state, }: { script: string; globals?: { [key: string]: any; }; state: State; }): Promise; //# sourceMappingURL=IdmScriptOps.d.ts.map