import { type OnModuleInit } from '@nestjs/common'; import { DiscoveryService } from '@nestjs/core'; import { type MatadorSchema } from '@zdavison/matador'; import type { MatadorModuleOptions } from '../types.js'; /** * Service that discovers all @OnMatadorEvent decorated methods in the application * and builds a Matador schema from them. */ export declare class SubscriberDiscoveryService implements OnModuleInit { private readonly discoveryService; private schema; private discovered; constructor(discoveryService: DiscoveryService); onModuleInit(): void; /** * Discovers all @OnMatadorEvent decorated methods and builds the schema. */ private discoverSubscribers; /** * Registers a single handler method as a subscriber. */ private registerHandler; /** * Adds a subscriber to the schema for an event. */ private addToSchema; /** * Gets the discovered schema. * Must be called after onModuleInit has run. */ getSchema(): MatadorSchema; /** * Gets the schema merged with additional events from options. */ getMergedSchema(options: MatadorModuleOptions): MatadorSchema; } //# sourceMappingURL=subscriber-discovery.service.d.ts.map