import { RequestOptionsArgs, Response } from '@angular/http'; export interface RetryPolicy { readonly defaultRetryTimes: number; readonly delayInMs: number; shouldRetryOnStatusCode(status: number): boolean; } export interface ConfigurationParameters { readonly apiKeys?: { [key: string]: string; }; readonly username?: string; readonly password?: string; readonly accessToken?: string | (() => string); readonly basePath?: string; readonly withCredentials?: boolean; readonly locale?: string | (() => string); readonly retryPolicy?: RetryPolicy; readonly responseInterceptor?: (req: RequestOptionsArgs, res: Response) => Response; readonly defaultHeaders?: { [key: string]: (string | string[]); }; } export declare class Configuration { readonly apiKeys?: { [key: string]: string; }; readonly username?: string; readonly password?: string; readonly accessToken?: string | (() => string); readonly basePath?: string; readonly withCredentials?: boolean; readonly locale?: string | (() => string); readonly retryPolicy?: RetryPolicy; readonly responseInterceptor?: (req: RequestOptionsArgs, res: Response) => Response; readonly defaultHeaders?: { [key: string]: (string | string[]); }; constructor(configurationParameters?: ConfigurationParameters); }