#ifndef COMPONENTS_HISTORY_EMBEDDINGS_PASSAGES_UTIL_H_
#define COMPONENTS_HISTORY_EMBEDDINGS_PASSAGES_UTIL_H_
#include <optional>
#include "base/containers/span.h"
#include "components/history_embeddings/proto/history_embeddings.pb.h"
#include "components/os_crypt/async/common/encryptor.h"
namespace history_embeddings {
std::vector<uint8_t> PassagesProtoToBlob(
const proto::PassagesValue& passages_value,
const os_crypt_async::Encryptor& encryptor);
std::optional<proto::PassagesValue> PassagesBlobToProto(
base::span<const uint8_t> passages_blob,
const os_crypt_async::Encryptor& encryptor);
}
#endif