import * as p_di from "../../../interface/data.js"; import { type Command_Promise } from "../../../interface/__internal/command/Command_Promise.js"; /** * this function contains the body in which the async value or error is executed * after the execution, either the on_value or on_error callback will be called * @param on_value the callback to call when a value is produced * @param on_error the callback to call when an error is produced */ type Executer = { 'execute': (on_success: () => undefined, on_error: ($: E) => undefined) => undefined; }; /** * returns an {@link Async_Value } * @param executer the function that produces the eventual value * @returns */ export default function (executer: Executer): Command_Promise; export {};