/** * Created by brian on 20/07/2017. */ import type { ImageBitmapInternal } from '@predy-js/render-interface'; export declare function printLog(err: Error | string): void; export declare function objAssign(target: T, source1: U, source2?: V, source3?: W): T & U & V & W; export declare function $(slt: string, ele?: HTMLElement): Element; export declare function $$(slt: string, ele?: HTMLElement): any; export declare function closeImageBitMap(img: any): void; export declare function loadImageAsync(img: string | HTMLImageElement | Blob | ImageBitmap | Uint8Array, options?: { premultiplyAlpha?: boolean; }): Promise; export declare function toggleClass(ele: HTMLElement, className: string, haveClass?: boolean): void; export declare function arrRemove(arr: any[], ele: any): boolean; export declare function arrAdd(arr: Array, item: T): boolean; export declare function forEach(object: null | undefined | Record | Array, callback: (val: T, key: number | string) => void, thisObj?: any): Record | T[]; export declare function isFunc(any: any): boolean; export declare function isObj(any: any): any; export declare function isStr(any: any): boolean; export declare function noop(): void; export declare function arrFill(arr: T[], item: T): T[]; export declare function random(min: number, max: number): number; export declare function mapRange(p: number, min: number, max: number): number; export declare function randomArrItem(arr: T[], keepArr?: boolean): T | undefined; export declare function hexToRgb(hex: number[] | string): number[]; export declare function getURLParams(): { [key: string]: string; }; export declare function requestAsync(url: string, opt?: { responseType?: XMLHttpRequestResponseType; disableCache?: boolean; }): Promise; export declare function string2HashCode(str: string): number; export declare function deepCloneByJSON(a: any): any; export declare function arrAddWithOrder(arr: T[], item: T, property: string, descending?: boolean): void; export declare function deepClone(a: any): any; export declare class TimeProfile { private flags; private times; private name; constructor(name?: string); mark(flag: string): void; print(): string; }