import { Dialog, TelegramClient, User, type TelegramClientOptions } from '@mtcute/node'; import { Dispatcher, MessageContext } from '@mtcute/dispatcher'; import type { DialogsQuery } from './telegram-data-ore.types.js'; /** @purpose Telegram client wrapper providing authentication and dialog retrieval. */ export declare class TelegramDataOre { /** @purpose Underlying mtcute Telegram client instance */ protected _client: TelegramClient; /** @purpose Message dispatcher for routing incoming updates */ protected _dispatcher: Dispatcher; /** * @purpose Initialize the Telegram client with given options and wire up message handler. * @param options Telegram client configuration options. */ constructor(options: TelegramClientOptions); /** * @purpose Authorize the Telegram client, using QR login as fallback. * @returns Authenticated user object. */ authorize(): Promise; /** * @purpose Retrieve dialogs from Telegram with optional query filters. * @param [query] Optional query parameters for filtering and pagination. * @returns Async iterable iterator of dialogs. */ getDialogs(query?: DialogsQuery): Promise>; /** @purpose Handler for incoming Telegram messages, formats and prints them. */ protected _handleNewMessage: (update: MessageContext, _state: never) => Promise; }