import { createOpenTelemetryServiceTracer, type ServiceTracerAttributes } from "../../observability/tracing/service-tracer.js"; import { type Logger } from "../../utils/logger/logger.js"; import { type AgentServiceConfig, type AgentServiceConfigInput } from "./config.js"; import { type NodeAgentServiceTelemetryEnv, type NodeAgentServiceTelemetryLogger, type NodeAgentServiceTelemetryProcessTarget } from "./node-telemetry.js"; import { type NodeAgentServiceApplicationErrorEnv, type NodeAgentServiceApplicationErrorLifecycle } from "./node-sentry.js"; /** Options accepted by create node agent service runtime infrastructure. */ export type CreateNodeAgentServiceRuntimeInfrastructureOptions = { serviceName: string; env: AgentServiceConfigInput & NodeAgentServiceTelemetryEnv & NodeAgentServiceApplicationErrorEnv; telemetryLogger?: NodeAgentServiceTelemetryLogger; processTarget?: NodeAgentServiceTelemetryProcessTarget; }; /** Options accepted by create node hosted agent service runtime infrastructure. */ export type CreateNodeHostedAgentServiceRuntimeInfrastructureOptions = CreateNodeAgentServiceRuntimeInfrastructureOptions; /** Public API contract for node agent service runtime infrastructure. */ export type NodeAgentServiceRuntimeInfrastructure = { getConfig(): AgentServiceConfig; logger: Logger; tracer: ReturnType["tracer"]; setActiveSpanAttributes(attributes: ServiceTracerAttributes): void; getTraceContext(): { traceId?: string; spanId?: string; }; initializeApplicationErrors(): Promise; initializeOpenTelemetry(): Promise; }; /** Public API contract for node hosted agent service runtime infrastructure. */ export type NodeHostedAgentServiceRuntimeInfrastructure = NodeAgentServiceRuntimeInfrastructure; /** Create node agent service runtime infrastructure. */ export declare function createNodeAgentServiceRuntimeInfrastructure(options: CreateNodeAgentServiceRuntimeInfrastructureOptions): NodeAgentServiceRuntimeInfrastructure; /** Create node hosted agent service runtime infrastructure. */ export declare const createNodeHostedAgentServiceRuntimeInfrastructure: typeof createNodeAgentServiceRuntimeInfrastructure; //# sourceMappingURL=node-runtime-infrastructure.d.ts.map