"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.actions = exports.doRender = void 0;
const react_1 = __importDefault(require("react"));
const react_redux_1 = require("react-redux");
const ink_1 = require("ink");
const main_1 = require("./components/main");
const store_1 = require("./state/store");
const graph_updated_1 = require("./state/actions/graph-updated");
const lerna_1 = require("./state/actions/lerna");
exports.doRender = () => ink_1.render(react_1.default.createElement(react_redux_1.Provider, { store: store_1.store },
    react_1.default.createElement(main_1.App, null)));
exports.actions = {
    setScheduler: (scheduler) => store_1.store.dispatch(graph_updated_1.setScheduler(scheduler)),
    setGraph: (graph) => store_1.store.dispatch(graph_updated_1.setGraph(graph)),
    updateCompilationStatus: (node) => store_1.store.dispatch(graph_updated_1.updateCompilationStatus(node)),
    updateServiceStatus: (service) => store_1.store.dispatch(graph_updated_1.updateServiceStatus(service)),
    parsingGraph: () => store_1.store.dispatch(lerna_1.parsingGraph()),
    graphParsed: () => store_1.store.dispatch(lerna_1.graphParsed()),
    graphBootstrapped: () => store_1.store.dispatch(lerna_1.graphBootstrapped()),
    lernaErrored: () => store_1.store.dispatch(lerna_1.lernaErrored()),
    updateLernaVersion: (version) => store_1.store.dispatch(lerna_1.updateLernaVersion(version)),
};
//# sourceMappingURL=index.js.map