import { default as WebAppConst } from "@twa-dev/sdk"; import type { InjectedWindow } from "@polkadot/extension-inject/types"; declare global { interface Window extends InjectedWindow {} } export type WalletStorage = Storage; export type WebApp = typeof WebAppConst; export interface ConnectRequest { method: 'connect'; callback: string; } export interface SignTransactionRequest { method: 'sT'; id: number; tx: `p:${string}` | `bytes:${string}`; wallet?: string; callback: string; } export interface ConnectResult { success: boolean; wallets?: string[]; error?: string; } export interface SignTransactionResult { success: boolean; id: number; signedTx?: string; error?: string; }