/** * Telegram DNS fallback — bypass DNS pollution without proxy. * * Strategy (same as Hermes Agent): * 1. Try direct connection to api.telegram.org * 2. If DNS poisoned → query Google DoH / Cloudflare DoH for real IPs * 3. Connect directly to IP with correct TLS SNI (curl --resolve equivalent) * 4. Last resort: hardcoded seed IP 149.154.167.220 * 5. Sticky: once an IP works, keep using it */ /** * Fetch from Telegram API with DNS fallback. * Tries direct first, then falls back to IP-based connections. */ export declare function telegramFetch(path: string, init?: RequestInit): Promise; /** * Reset sticky IP and discovered IPs (for testing or reconnect). */ export declare function resetTelegramFallback(): void; /** * Get current sticky IP (for diagnostics). */ export declare function getStickyIp(): string | undefined; //# sourceMappingURL=telegram-fallback.d.ts.map