declare enum Network {
    MAINNET = "mainnet",
    TESTNET = "testnet",
    ETH = "eth",
    BSC = "bsc"
}
type IInitData = {
    colorMode?: 'light' | 'dark';
    network: Network | string;
    fullnode?: string;
    indexer?: string;
    walletUrl?: string;
    prover?: string;
    callbackWalletName?: string;
    miniprogram?: Boolean;
    windowWidth?: number;
};
type ChainData = {
    targetNet: 'endless' | 'eds' | 'eth' | 'bsc';
};
declare enum UserResponseStatus {
    APPROVED = "Approved",
    REJECTED = "Rejected"
}
interface UserApproval<TResponseArgs> {
    status: UserResponseStatus.APPROVED;
    args: TResponseArgs;
}
interface UserRejection {
    status: UserResponseStatus.REJECTED;
    message?: string;
}
type UserResponse<TResponseArgs> = UserApproval<TResponseArgs> | UserRejection;
interface AccountInfo {
    account: string;
    address: string;
    authKey: string;
    ansName?: string;
}
interface NetworkInfo {
    name: Network | string;
    chainId: number;
    url?: string;
}
declare global {
    var wx: any;
    interface Window {
        wx: any;
        webkit: any;
        WeixinJSBridge: {
            invoke(api: string, data: any, callback: (res: any) => void): void;
            on(api: string, callback: (res: any) => void): void;
        };
        evmWallet?: {
            sendResponse: (response: any) => void;
        };
        _evmWallet?: {
            sendMessage: (data: any) => void;
        };
    }
}

export { type AccountInfo, type ChainData, type IInitData, Network, type NetworkInfo, type UserApproval, type UserRejection, type UserResponse, UserResponseStatus };
