/** * @license * Copyright Andrey Chalkin (https://github.com/L2jLiga). All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/L2jLiga/fastify-decorators/blob/master/LICENSE */ import { FastifyInstance } from 'fastify'; import { Constructor } from '../decorators/helpers/inject-dependencies.js'; import { Plugins } from './fastify-plugins.js'; import { ServiceMock } from './service-mock.js'; export interface ServiceTestConfig { service: Constructor; instance?: FastifyInstance; mocks?: ServiceMock[]; plugins?: Plugins; } /** * Configures service for testing * @param config with service and mocks * @returns configured service & promise which resolves when async initializer done (if it exists, otherwise resolved) */ export declare function configureServiceTest(config: ServiceTestConfig): Promise & Service;