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