/*! * Copyright (c) 2020 Ville de Montreal. All rights reserved. * Licensed under the MIT license. * See LICENSE file in the project root for full license information. */ import * as request from 'request'; import { IRequestPluginImplementation } from './IRequestPluginImplementation'; export declare function catchErrors(action: () => void): void; export declare function getPlugins(instance: any): IRequestPluginImplementation[]; export declare function addPlugins(instance: any, plugins: IRequestPluginImplementation[]): void; export declare function overrideMethod(prototype: any, name: string): (this: request.Request, ...args: any[]) => void; export declare function customInit(this: request.Request, options: any): void; export declare function patchClass(constr: any): void;