import { ErrorUnion, OkUnion } from '../outputs'; /** * Checks the authentication code. Works only when the current authorization state is * authorizationStateWaitCode * @param {Object} params * @param {string} [params.code] - The verification code received via SMS, Telegram * message, phone call, or flash call * @param {string} [params.firstName] - If the user is not yet registered, the first * name of the user; 1-64 characters. You can also pass an empty string for unregistered * user there to check verification code validness. In the latter case PHONE_NUMBER_UNOCCUPIED * error will be returned for a valid code * @param {string} [params.lastName] - If the user is not yet registered; the last * name of the user; optional; 0-64 characters * @param {Object} state * @returns {OkUnion | ErrorUnion} */ export declare type CheckAuthenticationCodeMethod = (params: CheckAuthenticationCodeParams, state?: Record) => Promise; export interface CheckAuthenticationCodeParams { /** The verification code received via SMS, Telegram message, phone call, or flash call */ code?: string; /** * If the user is not yet registered, the first name of the user; 1-64 characters. You * can also pass an empty string for unregistered user there to check verification code * validness. In the latter case PHONE_NUMBER_UNOCCUPIED error will be returned for * a valid code */ firstName?: string; /** If the user is not yet registered; the last name of the user; optional; 0-64 characters */ lastName?: string; }