/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once class QMimeData; namespace Main { class Session; } // namespace Main namespace Ui { class ChatStyle; class InputField; class Show; } // namespace Ui namespace HistoryView::Controls { class ComposeAiButton; } // namespace HistoryView::Controls namespace Ui { struct PreparedList; extern const char kOptionHideAiButton[]; [[nodiscard]] bool HasEnoughLinesForAi( not_null session, not_null field); struct SetupCaptionAiButtonArgs { not_null parent; not_null field; not_null session; std::shared_ptr show; std::shared_ptr chatStyle; }; [[nodiscard]] auto SetupCaptionAiButton(SetupCaptionAiButtonArgs &&args) -> not_null; void UpdateCaptionAiButtonGeometry( not_null button, not_null field); [[nodiscard]] PreparedList PrepareTextAsFile(const QString &text); [[nodiscard]] int SendAsFilePasteThreshold(); struct LargeTextPasteResult { bool exceeds = false; QString resultingText; }; [[nodiscard]] LargeTextPasteResult CheckLargeTextPaste( not_null field, not_null data); } // namespace Ui