910e62b5创建于 1月15日历史提交
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef ASH_QUICK_INSERT_SEARCH_QUICK_INSERT_EDITOR_SEARCH_H_
#define ASH_QUICK_INSERT_SEARCH_QUICK_INSERT_EDITOR_SEARCH_H_

#include <optional>
#include <string_view>

#include "ash/ash_export.h"
#include "ash/quick_insert/quick_insert_search_result.h"

namespace ash {

// `query` must not be empty.
ASH_EXPORT std::optional<QuickInsertSearchResult> QuickInsertEditorSearch(
    QuickInsertEditorResult::Mode mode,
    std::u16string_view query);

}  // namespace ash

#endif  // ASH_QUICK_INSERT_SEARCH_QUICK_INSERT_EDITOR_SEARCH_H_