// Copyright BigchainDB GmbH and BigchainDB contributors // SPDX-License-Identifier: (Apache-2.0 AND CC-BY-4.0) // Code is Apache-2.0 and docs are CC-BY-4.0 export interface RequestConfig { headers?: Record; jsonBody?: Record; query?: Record; method?: 'GET' | ' POST' | 'PUT'; urlTemplateSpec?: any[] | Record; [key: string]: any; } export function ResponseError( message: string, status?: number, requestURI?: string ): void; declare function timeout( ms: number, promise: Promise ): Promise; declare function handleResponse(res: Response): Response; export default function baseRequest( url: string, config: RequestConfig, requestTimeout?: number ): Promise;