import { Binding, Context, Interceptor, InvocationContext, InvocationResult, Provider, ValueOrPromise } from '@loopback/core'; /** * This class will be bound to the application as an `Interceptor` during * `boot` */ export declare class SpyInterceptorProvider implements Provider { private binding; constructor(resolutionCtx: Context, binding: Binding); /** * This method is used by LoopBack context to produce an interceptor function * for the binding. * * @returns An interceptor function */ value(): (invocationCtx: InvocationContext, next: () => any) => Promise; /** * The logic to intercept an invocation * @param invocationCtx - Invocation context * @param next - A function to invoke next interceptor or the target method */ intercept(invocationCtx: InvocationContext, next: () => ValueOrPromise): Promise; }