/*! * 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 { IMethodHookArgs } from './IMethodHookArgs'; /** * hooks the method of a specific instance * @param instance the instance to be hooked * @param methodName the name of the method to be hooked * @param handler the function that will extend the behaviour of the hooked method */ export declare function hookMethod(instance: any, methodName: string, handler: (args: IMethodHookArgs) => Promise): void;