/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
export function encodeBranchId(idCompressor, branchId) {
    return branchId === "main" ? undefined : idCompressor.normalizeToOpSpace(branchId);
}
export function decodeBranchId(idCompressor, encoded, context) {
    return encoded === undefined
        ? "main"
        : idCompressor.normalizeToSessionSpace(encoded, context.originatorId);
}
//# sourceMappingURL=branchIdCodec.js.map