import { TelegramClient } from 'telegram'; import { StringSession } from 'telegram/sessions'; import { TelegramClientParams } from 'telegram/client/telegramBaseClient'; import { DogProfile, Dog } from 'dprx-types'; export declare class DogExt extends Dog { client?: TelegramClient; clientParams?: TelegramClientParams; } export declare type DogLog = (opts: { roomId: string; phone: string; error?: any; info?: any; inputKey?: string; profile?: DogProfile; session?: string; updateStatus?: boolean; telegramId?: string; result?: any; propertyKey?: string; }) => void; export declare type DogSave = (dog: Dog) => Promise; export declare type DogDelete = (dog: Dog) => Promise; export declare class DogSvc { static log?: DogLog; static save?: DogSave; static del?: DogDelete; static dogs: DogExt[]; protected static waitValues: { [phoneInputkey: string]: string; }; constructor(); static build({ roomId, dogs, log, save, del, }: { roomId: string; dogs: DogExt[]; log?: DogLog; save?: DogSave; del?: DogDelete; }): Promise<{ deletedList: any[]; successList: DogExt[]; }>; static getDog({ phone }: { phone: string; }): DogExt | undefined; static getSession({ phone }: { phone: string; }): string | undefined; 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; protected static needSave(olDog: Dog, newDog: Dog): boolean; }