import { tl } from '../../../tl/index.js';
import { ITelegramClient } from '../../client.types.js';
import { SentCode } from '../../types/auth/sent-code.js';
import { User } from '../../types/index.js';
/**
 * Send the confirmation code to the given phone number
 *
 * @returns  An object containing information about the sent confirmation code,
 *     or a user if the user was already logged in
 */
export declare function sendCode(client: ITelegramClient, params: {
    /** Phone number in international format */
    phone: string;
    /** Saved future auth tokens, if any */
    futureAuthTokens?: Uint8Array[];
    /** Additional code settings to pass to the server */
    codeSettings?: Omit<tl.RawCodeSettings, '_' | 'logoutTokens'>;
    /** Abort signal */
    abortSignal?: AbortSignal;
}): Promise<SentCode | User>;
