"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.TestSerializer = void 0;
const core_utils_1 = require("@fluidframework/core-utils");
/**
 * Test serializer implementation for merge tree tests
 */
class TestSerializer {
    constructor() { }
    get IFluidSerializer() {
        return this;
    }
    encode(input, bind) {
        throw new Error("Method not implemented.");
    }
    decode(input) {
        throw new Error("Method not implemented.");
    }
    stringify(value, bind) {
        (0, core_utils_1.assert)(bind === undefined, "Test serializer should not be called with bind handles");
        return JSON.stringify(value);
    }
    parse(value) {
        // eslint-disable-next-line @typescript-eslint/no-unsafe-return
        return JSON.parse(value);
    }
}
exports.TestSerializer = TestSerializer;
//# sourceMappingURL=testSerializer.cjs.map