type WMAddress = string | Array | undefined; type returnValidPointer = string | HTMLMetaElement; type defaultAddress = string | WMPointer | (string | WMPointer)[]; type address = string; type weight = number | string; interface WMPointer { address: string; weight?: weight; } interface fundOptions { force?: "client" | "server"; maxPool?: number; default?: boolean; affiliateId?: string; isAffiliateEntry?: boolean; } interface defaultAddressOptions { allowUndefined?: boolean; } // declare var document: any; // declare var window: any;