"use strict";
/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.isBlobMetadata = exports.asEmptyBatchLocalOpMetadata = exports.asBatchMetadata = void 0;
/**
 * Syntactic sugar for casting
 */
function asBatchMetadata(metadata) {
    return metadata;
}
exports.asBatchMetadata = asBatchMetadata;
/**
 * Syntactic sugar for casting
 */
function asEmptyBatchLocalOpMetadata(localOpMetadata) {
    return localOpMetadata;
}
exports.asEmptyBatchLocalOpMetadata = asEmptyBatchLocalOpMetadata;
const isBlobMetadata = (metadata) => {
    return (typeof metadata === "object" &&
        metadata !== null &&
        typeof metadata.blobId === "string" &&
        typeof metadata.localId === "string");
};
exports.isBlobMetadata = isBlobMetadata;
//# sourceMappingURL=metadata.js.map