import { ErrorUnion, OkUnion } from '../outputs'; /** * Adds current user as a new member to a chat. Private and secret chats can't be joined * using this method * @param {Object} params * @param {number} [params.chatId] - Chat identifier * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type JoinChatMethod = (params: JoinChatParams, state?: Record) => Promise; export interface JoinChatParams { /** Chat identifier */ chatId?: number; }