import { ApiConfig } from '../config/api-config'; import { ApiUrl } from '../config/api-url'; export declare function isApiUrlEqualsUrl(apiUrl: ApiUrl, url: string): boolean; export declare class CommonUtil { /** * Search the value of an specific cookie * @param name the name of the cookie to search */ static getCookie(name: string): string; /** * Convert from seconds to a valid UTC date in string format * @param seconds the total amount of seconds */ static changeExpiredTime(seconds: number): string; /** * Determine if a value is empty or not * @param val the value to check */ static isEmpty(val: string | null | undefined): boolean; /** * Return the url used to call specific api service * @param name the name of the api service * @param apiConfig the api settings by environment */ static getApiUrl(name: string, apiConfig: ApiConfig): string | null; /** * Return the api url data related to an specific api service from the url * @param url the url from which search the config * @param apiConfig the api settings by environment * @returns an instance of the ApiUrl found */ static getApiByUrl(url: string, apiConfig: ApiConfig): ApiUrl | undefined; }