"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.dummyRepairDataStore = void 0;
const util_1 = require("../util");
const treeTextCursor_1 = require("./treeTextCursor");
const DUMMY_REVIVED_NODE_TYPE = (0, util_1.brand)("DummyRevivedNode");
const DUMMY_REVIVED_VALUE = (0, util_1.brand)("DummyRevivedValue");
/**
 * A `RepairDataStore` implementation that returns dummy content.
 */
exports.dummyRepairDataStore = {
    capture: () => { },
    getNodes: (revision, path, field, index, count) => (0, util_1.makeArray)(count, () => (0, treeTextCursor_1.singleTextCursor)({ type: DUMMY_REVIVED_NODE_TYPE })),
    getValue: (revision, path) => {
        return DUMMY_REVIVED_VALUE;
    },
};
//# sourceMappingURL=fakeRepairDataStore.js.map