import { tl } from '../../../tl/index.js'; import { ITelegramClient } from '../../client.types.js'; import { User } from '../../types/index.js'; /** * Check your Two-Step verification password and log in * * @returns The authorized user * @throws BadRequestError In case the password is invalid */ export declare function checkPassword(client: ITelegramClient, options: string | { /** Your Two-Step verification password */ password: string; /** Existing response from `account.getPassword`, if available (to avoid extra API calls) */ passwordObj?: tl.account.TypePassword; /** Abort signal */ abortSignal?: AbortSignal; }): Promise;