import { AutoprofileSettings, ProxyItem, TResultError } from 'dprx-types'; import { DogExt, TTwoFaSettings } from '../..'; import { StringSession } from 'telegram/sessions'; export declare class DogSvc { static dogs: DogExt[]; static invalidPhones: string[]; static spamPhones: string[]; static buildingPhones: string[]; protected static waitValues: { [phoneInputkey: string]: string; }; constructor(); static build({ roomId, dogs, }: { roomId: string; dogs: DogExt[]; }): Promise<{ result: any[]; }>; protected static buildDog({ roomId, dog }: { dog: DogExt; roomId: string; }): Promise; static checkSpamBlock({}: {}): Promise<{ result?: any; error?: any; propertyKey?: string | undefined; }[] | { error: string; }>; static disconnectAll({}: {}): Promise; static disconnect({ phones }: { phones: string[]; }): Promise; protected static disconnectLimits({ moreMinutes }: { moreMinutes: number; }): Promise<{ error: string; result?: undefined; } | { result: string; error?: undefined; }>; static addBulk({ parentDir, roomId, token, resetAuthorizations, twoFaSettings, autoprofileSettings, appId, appHash, proxies, }: { parentDir: string; roomId?: string; appId?: string; appHash?: string; token: string; resetAuthorizations: boolean; twoFaSettings: TTwoFaSettings; proxies: ProxyItem[]; autoprofileSettings?: AutoprofileSettings[]; }): Promise<{ result: any[]; }>; static load({ phone, subdir, appId, appHash, session, roomId, token, resetAuthorizations, twoFaSettings, privacies, autoprofileSettings, proxies, }: { phone: string; subdir: string; appId: string; appHash: string; session: string; roomId: string; token: string; resetAuthorizations: boolean; twoFaSettings?: TTwoFaSettings; privacies?: { key: any; rules: any[]; }[]; autoprofileSettings?: AutoprofileSettings[]; proxies: ProxyItem[]; }): Promise<{ error: string; dogExt?: undefined; resetAuthorizations?: undefined; } | { dogExt: DogExt; resetAuthorizations: false | { result?: any; error?: any; propertyKey?: string | undefined; }; error?: undefined; }>; static pauseDog({ phones }: { phones: string[]; }): Promise; static getDog({ phone }: { phone: string; }): DogExt | undefined; static getRandomDog({}: {}): DogExt; static getSession({ phone }: { phone: string; }): string | undefined; static isSpam({ phone }: { phone: string; }): boolean; static getInputKey(phone: string, inputKey: string): string; static setInputKeyValue({ phone, inputKey, value }: { phone: string; inputKey: string; value: string; }): Promise; static waitInputKey({ phone, inputKey, timeout }: { phone: string; inputKey: string; timeout: number; }): Promise; protected static getStringSession(session: string): StringSession; static errorHandler({ error, phone }: { error: any; phone: string; }): Promise; protected static getAvailableProxy({ proxies, limitDogsCountOnProxy, }: { proxies: ProxyItem[]; limitDogsCountOnProxy: number; }): TResultError; }