import 'rxjs/add/observable/throw';
import { Observable } from 'rxjs/Observable';
/**
 * Functions that are useful and prevents useless copypastas
 */
export declare class UtilsService {
    /**
     * Encode a text to URL friendly string
     */
    static encodeToUrl(value: string): string;
    /**
     * Sends the appropriate readable message error among every possible errors.
     * TESTED
     */
    static throwAppropriateError(currentError: any, possibleErrors: any[]): Observable<any>;
    static moveElementFromKey(values: any[], movement: 'up' | 'down', index: number, key?: string): any[];
}
