import { ErrorUnion, UpdatesUnion } from '../outputs'; /** * Returns all updates needed to restore current TDLib state, i.e. all actual UpdateAuthorizationState/UpdateUser/UpdateNewChat * and others. This is especially usefull if TDLib is run in a separate process. This * is an offline method. Can be called before authorization * @param {Object} state * @returns {UpdatesUnion | ErrorUnion} */ export declare type GetCurrentStateMethod = (state?: Record) => Promise;