import '../common/Extensions/String.extensions'; /** * Helper with general methods to simplify some routines */ export declare class GeneralHelper { /** * Trims slash at the end of URL if needed * @param url URL */ static trimSlash(url: string): string; /** * Encodes text * @param text text to encode */ static encodeText(text: string): string; /** * Copy of Microsoft's GetRelativeDateTimeString from SP.dateTimeUtil */ static getRelativeDateTimeString(format: string): string; /** * Copy of Microsoft's GetLocalizedCountValue from SP.dateTimeUtil. * I've tried to rename all the vars to have meaningful names... but some were too unclear */ static getLocalizedCountValue(format: string, first: string, second: number): string; /** * Extracts text from HTML strings without creating HTML elements * @param html HTML string */ static getTextFromHTML(html: string): string; /** * Checks if value is defined (not null and not undefined) * @param value value */ static isDefined(value: any): boolean; /** * Creates Document element based on Xml string * @param xmlString XML string to parse */ static parseXml(xmlString: any): Document; private static _getEncodedChar(c); }