import { ChatMembersFilterInputUnion } from '../inputs'; import { ChatMembersUnion, ErrorUnion } from '../outputs'; /** * Searches for a specified query in the first name, last name and username of the members * of a specified chat. Requires administrator rights in channels * @param {Object} params * @param {number} [params.chatId] - Chat identifier * @param {string} [params.query] - Query to search for * @param {number} [params.limit] - The maximum number of users to be returned * @param {ChatMembersFilterInputUnion} [params.filter] - The type of users to return. * By default, chatMembersFilterMembers * @param {Object} state * @returns {ChatMembersUnion | ErrorUnion} */ export declare type SearchChatMembersMethod = (params: SearchChatMembersParams, state?: Record) => Promise; export interface SearchChatMembersParams { /** Chat identifier */ chatId?: number; /** Query to search for */ query?: string; /** The maximum number of users to be returned */ limit?: number; /** The type of users to return. By default, chatMembersFilterMembers */ filter?: ChatMembersFilterInputUnion; }