interface TelegramSession {
    tenantId: string;
    token: string;
    status: 'connecting' | 'connected' | 'disconnected' | 'auth_failed';
    botUsername: string | null;
    botId: number | null;
    lastUpdateId: number;
    pollAbort: AbortController | null;
    startedAt: number;
    reconnectAttempts: number;
    messagesToday: number;
    messagesTotal: number;
    lastMessagePreview: string | null;
    lastMessageAt: number | null;
    lastError: string | null;
}
export declare function startTelegramSession(tenantId: string, token: string): Promise<TelegramSession>;
export interface TelegramStatus {
    status: TelegramSession['status'];
    bot_username: string | null;
    bot_id: number | null;
    invite_link: string | null;
    started_at: number | null;
    reconnect_attempts: number;
    messages_today: number;
    messages_total: number;
    last_message_preview: string | null;
    last_message_at: number | null;
    last_error: string | null;
}
export declare function getTelegramStatus(tenantId: string): TelegramStatus;
export declare function disconnectTelegramSession(tenantId: string): Promise<void>;
export declare function sendTelegramMessage(tenantId: string, chatId: number, text: string): Promise<void>;
export {};
//# sourceMappingURL=adapter.d.ts.map