import { ITelegramClient } from '../../client.types.js';
import { User } from '../../types/peers/user.js';
/**
 * Authorize a user in Telegram with a valid confirmation code.
 *
 * @returns  If the code was valid and authorization succeeded, the {@link User} is returned.
 * @throws  BadRequestError  In case the arguments are invalid
 * @throws  SessionPasswordNeededError  In case a password is needed to sign in
 */
export declare function signIn(client: ITelegramClient, params: {
    /** Phone number in international format */
    phone: string;
    /** Code identifier from {@link sendCode} */
    phoneCodeHash: string;
    /** The confirmation code that was received */
    phoneCode: string;
    /** Abort signal */
    abortSignal?: AbortSignal;
}): Promise<User>;
