#include "third_party/blink/renderer/platform/language_detection/detect.h"
#include <map>
#include <string>
#include "base/functional/callback.h"
#include "components/language_detection/core/language_detection_model.h"
#include "components/language_detection/core/language_detection_provider.h"
#include "third_party/blink/renderer/platform/wtf/hash_map.h"
#include "third_party/blink/renderer/platform/wtf/hash_traits.h"
#include "third_party/blink/renderer/platform/wtf/text/atomic_string.h"
#include "third_party/blink/renderer/platform/wtf/wtf_size_t.h"
namespace blink {
const unsigned kModelInputMaxChars = …;
void DetectLanguage(
const WTF::String& text,
base::OnceCallback<void(base::expected<WTF::Vector<LanguagePrediction>,
DetectLanguageError>)> on_complete) { … }
}