/** * Raiden API * https://raiden-network.readthedocs.io/en/latest/rest_api.html * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Observable } from 'rxjs'; import { AjaxResponse } from 'rxjs/ajax'; export declare const BASE_PATH: string; export interface ConfigurationParameters { basePath?: string; middleware?: Middleware[]; username?: string; password?: string; apiKey?: string | ((name: string) => string); accessToken?: string | ((name: string, scopes?: string[]) => string); } export declare class Configuration { private configuration; constructor(configuration?: ConfigurationParameters); readonly basePath: string; readonly middleware: Middleware[]; readonly username: string | undefined; readonly password: string | undefined; readonly apiKey: ((name: string) => string) | undefined; readonly accessToken: ((name: string, scopes?: string[]) => string) | undefined; } /** * This is the base class for all generated API classes. */ export declare class BaseAPI { protected configuration: Configuration; private middleware; constructor(configuration?: Configuration); withMiddleware: (middlewares: Middleware[]) => T; withPreMiddleware: (preMiddlewares: ((context: RequestContext) => RequestArgs)[]) => T; withPostMiddleware: (postMiddlewares: ((context: ResponseContext) => AjaxResponse)[]) => T; protected request: (context: RequestOpts) => Observable; private createRequestArgs; private rxjsRequest; /** * Create a shallow clone of `this` by constructing a new instance * and then shallow cloning data members. */ private clone; } export declare class RequiredError extends Error { name: 'RequiredError'; } export declare const COLLECTION_FORMATS: { csv: string; ssv: string; tsv: string; pipes: string; }; export declare type Json = any; export declare type HttpMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS'; export declare type HttpHeaders = { [key: string]: string; }; export declare type HttpQuery = { [key: string]: string | number | null | boolean | Array; }; export declare type HttpBody = Json | FormData; export declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; export interface RequestArgs { url: string; options: RequestInit; } export interface RequestOpts { path: string; method: HttpMethod; headers: HttpHeaders; query?: HttpQuery; body?: HttpBody; } export declare const querystring: (params: HttpQuery) => string; export declare const throwIfRequired: (params: { [key: string]: any; }, key: string, nickname: string) => void; export interface RequestContext extends RequestArgs { } export interface ResponseContext extends RequestArgs { response: AjaxResponse; } export interface Middleware { pre?(context: RequestContext): RequestArgs; post?(context: ResponseContext): AjaxResponse; } //# sourceMappingURL=runtime.d.ts.map