/** * @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 { IErrorHandler, IHandler, IHook } from '../../interfaces/controller.js'; import { ERROR_HANDLERS, HANDLERS, HOOKS, SERVICE_INJECTION } from '../../symbols/index.js'; import { ServiceInjection } from './inject-dependencies.js'; import { Container } from './container.js'; export declare function ensureHandlers(target: { [HANDLERS]?: Container; }): void; export declare function hasHandlers(target: Constructor): target is Constructor & { [HANDLERS]: Container; }; export declare function ensureErrorHandlers(target: { [ERROR_HANDLERS]?: Container; }): void; export declare function hasErrorHandlers(target: T): target is T & { [ERROR_HANDLERS]: Container; }; export declare function ensureHooks(target: { [HOOKS]?: Container; }): void; export declare function hasHooks(target: T): target is T & { [HOOKS]: Container; }; export declare function ensureServiceInjection(target: { [SERVICE_INJECTION]?: Container; }): void; export declare function hasServiceInjection(val: T): val is T & { [SERVICE_INJECTION]: Container; };