import { ErrorUnion, OkUnion } from '../outputs'; /** * Removes current user from chat members. Private and secret chats can't be left using * this method * @param {Object} params * @param {number} [params.chatId] - Chat identifier * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type LeaveChatMethod = (params: LeaveChatParams, state?: Record) => Promise; export interface LeaveChatParams { /** Chat identifier */ chatId?: number; }