/// import { CrowdloanParaState, NetworkJson } from '../background/KoniTypes'; import { AccountAuthType, AccountJson } from '@soul-wallet/extension-base/background/types'; import { BN } from '@polkadot/util'; export { canDerive } from './canDerive'; export declare const notDef: (x: any) => boolean; export declare const isDef: (x: any) => boolean; export declare const nonEmptyArr: (x: any) => boolean; export declare const isEmptyArray: (x: any) => boolean; export declare function isAccountAll(address?: string): boolean; export declare const isMobile: boolean; export declare function reformatAddress(address: string, networkPrefix?: number, isEthereum?: boolean): string; export declare function filterAddressByNetworkKey(addresses: string[], networkKey: string, isEthereum?: boolean): string[]; export declare function categoryAddresses(addresses: string[]): string[][]; export declare function categoryNetworks(networks: NetworkJson[]): string[][]; export declare function convertToEvmAddress(substrateAddress: string): string; export declare function isUrl(targetString: string): boolean; export declare function inJestTest(): boolean; export declare const parseIpfsLink: (ipfsLink: string) => string; export declare function hexToStr(buf: string): string; export declare function utf16ToString(uInt16Array: Array): string; export declare function hexToUTF16(hex: string): Uint8Array; export declare const isValidSubstrateAddress: (address: string) => boolean; export declare const toUnit: (balance: number, decimals: number) => number; export declare function sumBN(inputArr: BN[]): BN; export declare const convertFundStatus: (status: string) => CrowdloanParaState | undefined; export declare const isAddressesEqual: (addresses: string[], prevAddresses: string[]) => boolean; export declare const isValidProvider: (provider: string) => boolean; export declare const getCurrentProvider: (data: NetworkJson) => string | null; export declare const getNftProvider: (data: NetworkJson) => string; export declare function mergeNetworkProviders(customNetwork: NetworkJson, predefinedNetwork: NetworkJson): { currentProviderMethod: string; parsedProviderKey: string; parsedCustomProviders: Record; }; export declare const filterAndSortingAccountByAuthType: (accounts: AccountJson[], accountAuthType: AccountAuthType, sorting?: boolean) => AccountJson[]; export declare function parseRawNumber(value: string): number; export declare function isSameAddress(address1: string, address2: string): boolean; export declare function getDomainFromUrl(url: string): string; export declare function waitTimeout(ms: number): Promise; export declare const stripUrl: (url: string) => string; export * from './array'; export * from './environment'; export * from './lazy'; export * from './registry'; export * from './translate';