/** * @Author: Alex Sorafumo * @Date: 09/01/2017 12:18 PM * @Email: alex@yuion.net * @Filename: Utility.ts * @Last modified by: Alex Sorafumo * @Last modified time: 27/01/2017 1:32 PM */ export declare class Utility { /** * Replaces all instances of string in a string * @param str String to replace contents * @param find String to find within str * @param replace String to replace find in str * @return Returns string with all instances of find replaced with replace */ static replaceAll(str: string, find: string, replace: string): string; /** * Escapes values the used to find elements * @param value String to escape * @return Returns escaped string */ static escape(value: string): string; static contrastRatio(color1: string, color2: string): number; static luminanace(r: number, g: number, b: number): number; /** * Add CSS class to specified element * @return */ static addClass(el: any, name: string): void; /** * Remove CSS class from specified element * @return */ static removeClass(el: any, name: string): void; /** * Swaps the first CSS class for the second CSS class if it exists on the element * @return */ static swapClass(el: any, first: string, second: string): void; static isIE(): boolean; }