import type { DynamicModule } from '@nestjs/common'; import type { Constructor } from '@rsdk/common'; import type { AnyMetric, MetricsModuleOptions } from './types'; /** * Metrics module exposes metrics interface (depending on transport) * and gives convenient ways to register and inject custom prom-client * metrics. * * @willsoto/nestjs-prometheus was an alternative, but it didn't really * fit */ export declare class MetricsModule { /** * Adds metrics controller provided as options * * @returns dynamic module */ static forRoot(options: MetricsModuleOptions): DynamicModule; /** * Use this to inject specified metric into target module * * @param first metric classe * @param other Not empty List of metric classes * @returns dynamic module */ static forFeature(first: Constructor, ...other: Constructor[]): DynamicModule; }