/**
* Converts a TDATA (tdesktop) folder to a GramJS session.
* Needs GramJS installed (npm i telegram)
*
* This is all based on https://github.com/danog/MadelineProto/blob/master/src/danog/MadelineProto/Conversion.php from the madeline library
* and as such is distributed in the same license and with the same header
*
* onversion module.
*
* This file is part of MadelineProto.
* MadelineProto is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
* MadelineProto is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU Affero General Public License for more details.
* You should have received a copy of the GNU General Public License along with MadelineProto.
* If not, see .
*
* @author Daniil Gentili
* @copyright 2016-2020 Daniil Gentili
* @license https://opensource.org/licenses/AGPL-3.0 AGPLv3
*
* @link https://docs.madelineproto.xyz MadelineProto documentation
*/
import { AuthKey } from 'telegram/crypto/AuthKey';
import { TResultError } from 'dprx-types';
export declare class DogConverter {
#private;
static updateJson({ jsonPath, updateData }: {
jsonPath: string;
updateData: object;
}): Promise<{
error: string;
result?: undefined;
} | {
result: any;
error?: undefined;
}>;
static deleteFolder({ folderPath }: {
folderPath: string;
}): Promise<{
error: string;
result?: undefined;
} | {
result: string;
error?: undefined;
}>;
constructor(mainPath: string);
getAppData({ phone }: {
phone: string;
}): Promise<{
error: string;
data?: undefined;
} | {
data: any;
error?: undefined;
}>;
getSessionData({ phone }: {
phone: string;
}): TResultError;
tdataToSession(): Promise<{
error: string;
session?: undefined;
userId?: undefined;
dc?: undefined;
mainAuthKey?: undefined;
} | {
session: string;
userId: number;
dc: number;
mainAuthKey: AuthKey;
error?: undefined;
}>;
}