export function encode(ops) {
    const operations = [];
    const length = ops.length;
    for (let i = 0; i < length; i++)
        operations.push(ops[i].toJson());
    return operations;
}
//# sourceMappingURL=encode.js.map