interface Window { Telegram?: { WebApp: { ready: () => void; expand: () => void; close: () => void; MainButton: { text: string; color: string; textColor: string; isVisible: boolean; isActive: boolean; show: () => void; hide: () => void; onClick: (callback: () => void) => void; }; openTelegramLink: (url: string) => void; setHeaderColor: (color: string) => void; }; }; }