import { type WhookObfuscatorService } from './obfuscator.js'; import { type WhookAPMService } from './apm.js'; import { type LogService, type TimeService, type DelayService } from 'common-services'; import { type IncomingMessage, type ServerResponse } from 'node:http'; import { type JsonValue } from 'type-fest'; import { type WhookRequest, type WhookResponse } from '../types/http.js'; export interface WhookHTTPTransactionConfig { TIMEOUT?: number; TRANSACTIONS?: Record>; } export type HTTPTransactionDependencies = WhookHTTPTransactionConfig & { obfuscator: WhookObfuscatorService; delay: DelayService; log?: LogService; apm?: WhookAPMService; time?: TimeService; uniqueId?: () => string; }; export interface WhookHTTPTransaction { request: WhookRequest; transaction: { id: string; start: (buildResponse: () => Promise) => Promise; catch: (err: Error) => Promise; end: (response: WhookResponse, operationId?: string) => Promise; }; } export type WhookHTTPTransactionService = (req: IncomingMessage, res: ServerResponse) => Promise; declare const _default: import("knifecycle").ServiceInitializer; export default _default;