import { ConfigService } from '@nestjs/config'; import { LabConflictsConflict } from 'itlab-functions'; import { AuthenticationModuleOptions } from '../../../authentication'; import { BaseHttpService } from '../../base-http.service'; import { FetchConflictOptionsDtoV1 } from './fetch-conflict-options.dto.v1.type'; /** * ConflictsService * * Service client responsible for interacting with the Conflicts microservice. * Extends `BaseHttpService` to inherit: * - Environment-sensitive URL resolution (internal vs. external). * - Secure inter-service authentication. * - Structured logging for traceability of outbound requests. * * Why this pattern? * - Ensures all outbound calls follow a unified configuration and logging structure. * - Promotes strong typing and maintainable HTTP logic. * - Makes service interactions predictable and debuggable across environments. */ export declare class ConflictsService extends BaseHttpService { /** * Constructs an Conflicts service client instance. * * @param {AuthenticationModuleOptions} authenticationOptions - Injected authentication configuration. * @param {ConfigService} configService - NestJS ConfigService for environment detection. */ constructor(authenticationOptions: AuthenticationModuleOptions, configService: ConfigService); /** * Retrieves a single conflict entry by its MongoDB identifier. * * This method gracefully handles downstream failures by logging * and returning `undefined` instead of throwing. * * @param {string} conflictId - Unique MongoDB identifier of the conflict. * @param {FetchConflictOptionsDtoV1} [options] - Optional query parameters for filtering or projection. * @returns {Promise} Resolves to an Conflict or `undefined` on failure. */ fetchConflictV1(conflictId: string, options?: FetchConflictOptionsDtoV1): Promise; /** * Retrieves a collection of conflict entries. * * Useful for batch lookups or paginated listings. * Returns an empty array if the downstream service call fails. * * @param {FetchConflictOptionsDtoV1} [options] - Optional filter options for narrowing results. * @returns {Promise} Resolves to a list of conflicts, or an empty array if none found. */ fetchConflictCollectionV1(options?: FetchConflictOptionsDtoV1): Promise; }