import { HttpParams } from '@angular/common/http'; import { ChangeDetectorRef, NgZone } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { SafeAny, SafeHTMLElement, SafeNumber } from '../type/type'; /** * [removeSubscriptions description] * @method removeSubscriptions */ export declare function removeSubscriptions(subscriptions: Array): Array; /** * Convert to boolean. * * @param {any} val * @returns {boolean} */ export declare function convertToBoolProperty(val: any): boolean; /** * Throw erro whit message in input. * * @author Federico Gambardella * @param {string} message */ export declare function throwError(message: string): void; /** * Show error message whitout stack trace. * * @author Federico Gambardella * @param {string} message */ export declare function throwErrorNoTrace(message: string): void; /** * Set options from object; * * @author Federico Gambardella * @param {any} object * @param {HttpParams} options * @return {options} */ export declare function setOptionFromObject(object: any, options: HttpParams): HttpParams; /** * Set options from criteria. * * @author Federico Gambardella * @param {any} criteria * @param {HttParams} options */ export declare function setOptionFromCriteria(criteria: any, options: HttpParams): HttpParams; /** * Set options: * * @author Federico Gambardella * @param {any} object * @param {any} criteria */ export declare function setOptions(object: any, criteria: any, options?: HttpParams): HttpParams; /** * Convert date to string. * * @author Federico Gambardella * @param {Date} date * @return {string} */ export declare function convertDateToString(date: Date, locale?: string): string; /** * Stringify a vlue if it is not a string. * * @author Federico Gambardella * @param {any} value */ export declare function stringify(value: any): string; /** * Generate a delay setted with input parameter. * * @author Federico Gambardella * @param {number} inputDelay */ export declare function delayFn(inputDelay?: number): Observable; /** * Update view in ngZone. * * @author Federico Gambardella * @param {ngZone} zone * @param {ChangeDetectorRef} cd * @return {void} */ export declare function updateViewInNgZone(zone: NgZone, cd: ChangeDetectorRef): void; /** * Get element top * * @author Federico Gambardella * @param {SafeHTMLElement} element * @return {SafeNumber} */ export declare function getElementTop(element: SafeHTMLElement): SafeNumber; /** * Add value in session storage. * * @author Federico Gambardella * @param key * @param value */ export declare function addInSessionStorage(key: string, value: string): void; /** * Parse json. * * @author Federico Gambardella * @param {SafeAny} value */ export declare function parseJSON(value: SafeAny): SafeAny; /** * Stringify json. * * @author Federico Gambardella * @param {SafeAny} value * @returns */ export declare function stringifyJSON(value: SafeAny): string; /** * Scroll into view * * @author Federico Gambardella * @param {HTMLElement} element */ export declare function scrollIntoView(element: Element): void; /** * Check if is a string. * * @author Federico Gambardella * @param {SafeAny} value * @returns */ export declare function isAString(value: SafeAny): SafeAny;