import type { ConnectionDef, ConnectionBase, ConnectionStatsBase } from './index.ts';
export interface TelegramConnectionDef extends ConnectionDef<"telegram"> {
    connection: TelegramConnectionRecord;
    stats: TelegramStatsRecord;
}
export interface TelegramQrLoginState {
    loginToken?: string;
    loginTokenExpires?: number;
}
export interface TelegramChatRecord {
    id: string;
    title: string;
    canPost?: boolean;
}
export interface TelegramStatsRecord extends ConnectionStatsBase {
    phoneNumber?: string;
    username?: string;
    firstName?: string;
    lastName?: string;
    chats: TelegramChatRecord[];
}
export interface TelegramConnectionRecord extends ConnectionBase {
    type?: "telegram";
    session?: string;
    phoneNumber?: string;
}
