import { DAppStoreSchema, StoresSchema, DappEnrichPayload, EnrichSchema, ScreenShotSchema, DAppSchema } from "../interfaces"; import { DappStoreRegistry, RegistryStrategy } from "./registry"; export declare class cloneable { static deepCopy(source: T): T; } export declare const validateSchema: (json: StoresSchema | DAppStoreSchema) => (string | boolean)[]; export declare const local: (schema: string) => StoresSchema | DAppStoreSchema; export declare const queryRemote: (remoteFile: string, schema: string) => Promise; export declare const cacheStoreOrRegistry: (remoteFile: string, cached: DAppStoreSchema | StoresSchema | undefined, strategy: RegistryStrategy, schema: string, lastCheckedAt: Date | undefined, TTL: number) => Promise<[DAppStoreSchema | StoresSchema, Date | undefined]>; /** * It will check that dapps exist in registry or not. */ export declare const isExistInRegistry: (dappIds: string[], DappRegistry: DappStoreRegistry) => Promise; /** * It will check that dapps exist in registry or not. */ export declare const dappMustExistInRegistry: (dappIds: string[], DappRegistry: DappStoreRegistry) => Promise; /** * Prepare category and subCategory mapping * @param category * @param subCategory * @returns */ export declare const getCatSubCatMapping: (category?: string[], subCategory?: string[]) => { category: string; subCategory: string[]; }[]; export declare const addNewDappEnrichDataForStore: (data: DappEnrichPayload, currDappStores: StoresSchema, storeIndex: number) => StoresSchema; export declare const deleteKeyFromObject: (path: string, data: any) => any; export declare const mergeArrayOfObject: (input: ScreenShotSchema[], existing: ScreenShotSchema[]) => ScreenShotSchema[]; export declare const updateDappEnrichDataForStore: (data: DappEnrichPayload, currDappStores: StoresSchema, dappsEnrichDetails: EnrichSchema, storeIndex: number, idx: number) => void; export declare const checkIfExists: (dappId: string, dapps: DAppSchema[], newUrls: string[]) => boolean; export declare const checkIfdappExistsInNew: (dappId: string, newUrls: string[]) => boolean; export declare const getPlainAppUrl: (appUrl: string | undefined) => string; export declare const getName: (name: string) => string; /** * return a unique dappId * @param name name of the dapp * @param appUrl url of the dapp * @param dapps list of all dapps * @param newUrls * @param newName * @returns */ export declare const getDappId: (name: string, appUrl: string | undefined, dapps: DAppSchema[], newUrls: string[], newNames: string[]) => string;