/*!
 * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
 * Licensed under the MIT License.
 */
import { bufferToString } from "@fluid-internal/client-utils";
/**
 * Reads and parses a snapshot blob from storage service.
 */
export const readAndParseSnapshotBlob = async (blobPath, service, parse) => {
    const treeBuffer = await service.readBlob(blobPath);
    const treeBufferString = bufferToString(treeBuffer, "utf8");
    return parse(treeBufferString);
};
//# sourceMappingURL=readSnapshotBlob.js.map