import { CompiledWordings } from '@amalto/wordings'; import { Endpoints } from '@amalto/typings'; import { OrgModel, TreeNodeModel } from './models/Organisation'; export declare const EMAIL_REGEX: RegExp; export declare const COLOR_CODE_REGEX: RegExp; export declare const SCOPE_KEYWORD_REGEX: RegExp; export declare const MAP_PROPERTY_KEY_REGEX: RegExp; export declare const XML_TAG_REGEX: RegExp; export declare const HTTPS_URL_REGEX: RegExp; export declare function getWordings(wordings: { [key: string]: any; }, locale: string): CompiledWordings; export declare function compileWordings(wordings: { [key: string]: any; }, locale: string): { [key: string]: string; }; export declare function getGravatarUrl(email: string): string; export declare function isValidPassword(password: string): boolean; export declare function isValidEmail(email: string): boolean; export declare function isValidColorCode(color: string): boolean; export declare function isNotEmpty(value?: string): boolean; export declare function isValidScopeKeyword(value: string): boolean; export declare function isValidKeyChar(value: string): boolean; export declare function isValidXMLTag(value: string): boolean; export declare function isValidHttpsUrl(value: string): boolean; export declare function escapeXml(xml: string): string; export declare function utf8JSON_to_b64URI(json: any): string; export declare function URIb64_to_utf8JSON(str: any): any; export declare function arrayMin(arr: number[]): number; export declare function arrayMax(arr: number[]): number; export declare function formatFileSize(size: number): string; export declare function getQueryParams(searchString: string): any; export declare function addQueryParam(uri: string, key: string, value: any): HTMLAnchorElement; export declare function orderAsc(object: Object): Object; export declare function orderDesc(object: Object): Object; export declare function saveDataAsJSONFile(data: any, fileName: string, extension?: string): void; export declare function downloadDataFile(base64DataString: string, contentType: string, fileName: string): void; export declare function triggerDataDownload(data: Blob | string, fileName: string, dataUrl?: boolean): void; export declare function hasRequiredResource(appEndpoints: Endpoints, appInstanceName: string, featureId: string): boolean; export declare function replaceTemplateViewName(templatedHtml: string, viewName: string): string; export declare function replaceTemplateFlags(templatedHtml: string, locale: string): string; export declare function getStyleDef(styleConf: string): { icon: string; btn: string; color: string; }; export declare function getAcceptLanguageHeader(locale: string): string; export declare function getI18nLabel(locale: string, labelMap: { [language: string]: string; }, noRegion?: boolean, upper?: boolean): string; export declare function getJSTreeData(orgTreeData: OrgModel, openedNodes?: string[]): TreeNodeModel; export declare function loadTooltips(element: Element): void; export declare function unloadTooltips(element: Element): void; export declare function groupByProperty(list: any[], propertyName: string): { [propValue: string]: any[]; }; export declare function addValToArrayNoDup(array: string[], value: string): string[]; export declare function removeValFromArrayNoDup(array: string[], value: string): string[]; export declare function getNestedValue(obj: any, keyPath: string): any; export declare function filterCollection(collection: any[], properties: string[], searchString: string): any[]; export declare function base64Decode(encodedData: string): string; export declare function deepCopy(data: any, extensions?: any): any; export declare function handleDuplicateNameFromArray(name: string, container: string[]): string; export declare function dateByLocalToString(locale: string, date: number, options?: Intl.DateTimeFormatOptions): string; export declare function getItemsByIdx(collection: Array, indexes: number[]): Array; export declare function escapeRegExp(text: string): string; export declare function displayString(value: string, defaultValue?: string): string; export declare function areJsonEqual(first: {}, second: {}): boolean; export declare function nestedPathAttributesExist(collection: Object, attributes: string[]): boolean; export declare function isSameObject(first: Object, second: Object): boolean;