/** * Shared Methods */ export declare class PpHelper { /** * * @param data:object * @param key:string * * Map Value With Key */ static mapValueWithApiKey(data: any, key: string): any; /** * * @param data Object to get data from * @param key Key inside 'data' object that contains the value * @param appendAfterMapping Key Separator in normal case is for space separated values (for eg: 'firstName lastName'), * but in case of image, we might need to remove the space to join baseUrl+key for src link. * * Fetching Value with API KEY */ static getValueWithApiKey(data: object, key: string, separators?: Array, appendAfterMapping?: boolean): any; /** * * Replace Dynamic Text with Value * * @param data * @param text */ static mapDynamicTextWithApiKey(data: object, text: string): string; /** * * @param url:string * * Validate URL is Complete URL or not * * eg: http:// | https:// -> valid * eg: /dashboard -> invalid */ static validateUrl(url: string): boolean; /** * * @param val : any * Check for Empty value */ static isEmpty(val: any): boolean; /** * * @param url : string * * Match string with regex * Get variable which is in form of ${id} */ static getVariablesFromUrl(url: string): any; /** * * @param str : string * Returns object of Prams */ static getParamsFromString(str: string): object; /** * * @param str: string * * Check string is JSON or not */ static isJson(str: string): boolean; /** * * @param url : string * @param data : object * Return url with replaced variables */ static replaceVariableInUrl(url: string, data: object): string; /** * * @param message :string * Throws error */ static throwErrorMessage(message: string): void; /** * * @param url : string * @param data : object * Return url with replaced variables */ static checkAndReplaceVariableInUrl(url: string, data: object): string | false; /** * Convert DataURI to Blob * * @param dataURI */ static dataURItoBlob(dataURI: any): Blob; }