/******************************************************************************** * Copyright (c) 2019 TypeFox and others * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v. 2.0 which is available at * http://www.eclipse.org/legal/epl-2.0. * * SPDX-License-Identifier: EPL-2.0 ********************************************************************************/ import { ErrorResponse } from './server-request'; export declare function addQuery(url: string, queries: { key: string; value: string | number | undefined; }[]): string; export declare function createAbsoluteURL(arr: string[], queries?: { key: string; value: string | number | undefined; }[]): string; export declare function createRoute(arr: string[], queries?: { key: string; value: string | number; }[]): string; export declare function debounce(task: () => void, token: { timeout?: number; }, delay?: number): void; export declare function toLocalTime(timestamp?: string): string | undefined; export declare function toRelativeTime(timestamp?: string, isFutureTime?: boolean): string | undefined; export declare function handleError(err?: Error | Partial): string; export interface Cookie { key: string; value: string; path?: string; domain?: string; maxAge?: number; expires?: string; secure?: boolean; samesite?: 'lax' | 'strict' | 'none'; } export declare function setCookie(cookie: Cookie): void; export declare function getCookieValueByKey(key: string): string | undefined; export declare function getTargetPlatforms(): string[]; export declare function getTargetPlatformDisplayName(targetPlatform: string): string; export declare function getEngineDisplayName(engine: string): string; //# sourceMappingURL=utils.d.ts.map