import { ErrorUnion, OkUnion } from '../outputs'; /** * Adds a chat to the list of recently found chats. The chat is added to the beginning * of the list. If the chat is already in the list, it will be removed from the list * first * @param {Object} params * @param {number} [params.chatId] - Identifier of the chat to add * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type AddRecentlyFoundChatMethod = (params: AddRecentlyFoundChatParams, state?: Record) => Promise; export interface AddRecentlyFoundChatParams { /** Identifier of the chat to add */ chatId?: number; }