import { MaybeArray } from '../../../types/utils.js'; import { ITelegramClient } from '../../client.types.js'; import { Dialog } from '../../types/messages/dialog.js'; /** * Try to find a dialog (dialogs) with a given peer (peers) by their ID, username or phone number. * * This might be an expensive call, as it will potentially iterate over all * dialogs to find the one with the given peer * * @throws {MtPeerNotFoundError} If a dialog with any of the given peers was not found */ export declare function findDialogs(client: ITelegramClient, peers: MaybeArray): Promise;