"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.AsyncS = exports.AsyncSRef = exports.AsyncSWatch = exports.AsyncSCall = void 0;
const proxyWrap_1 = require("../../../proxyWrap");
const AsyncGraph_1 = require("./AsyncGraph");
const AsyncSCall = (system) => {
    return {};
};
exports.AsyncSCall = AsyncSCall;
const AsyncSWatch = (system) => {
    return {};
};
exports.AsyncSWatch = AsyncSWatch;
const AsyncSRef = (system) => {
    return {
        $newGraph({ bundle, _ }) {
            const _bundle = system.fromBundle(bundle);
            const graph = system.newGraph(_bundle);
            const $graph = (0, AsyncGraph_1.AsyncGraph)(graph);
            return (0, proxyWrap_1.proxyWrap)($graph, _);
        },
    };
};
exports.AsyncSRef = AsyncSRef;
const AsyncS = (system) => {
    return Object.assign(Object.assign(Object.assign({}, (0, exports.AsyncSCall)(system)), (0, exports.AsyncSWatch)(system)), (0, exports.AsyncSRef)(system));
};
exports.AsyncS = AsyncS;
//# sourceMappingURL=AsyncS.js.map