import { ChatUnion, ErrorUnion } from '../outputs'; /** * Searches a public chat by its username. Currently only private chats, supergroups * and channels can be public. Returns the chat if found; otherwise an error is returned * @param {Object} params * @param {string} [params.username] - Username to be resolved * @param {Object} state * @returns {ChatUnion | ErrorUnion} */ export declare type SearchPublicChatMethod = (params: SearchPublicChatParams, state?: Record) => Promise; export interface SearchPublicChatParams { /** Username to be resolved */ username?: string; }