import { ErrorUnion, OkUnion } from '../outputs'; /** * Informs TDLib that the chat is closed by the user. Many useful activities depend * on the chat being opened or closed * @param {Object} params * @param {number} [params.chatId] - Chat identifier * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type CloseChatMethod = (params: CloseChatParams, state?: Record) => Promise; export interface CloseChatParams { /** Chat identifier */ chatId?: number; }