///
import { OtlpHttpConfiguration } from "../../../configuration/otlp-http-configuration.mjs";
import * as http from "http";
import * as https from "https";
//#region src/platform/node/configuration/otlp-node-http-configuration.d.ts
type HttpAgentFactory = (protocol: string) => http.Agent | https.Agent | Promise | Promise;
interface OtlpNodeHttpConfiguration extends OtlpHttpConfiguration {
/**
* Factory function for creating agents.
*
* @remarks
* Prefer using {@link httpAgentFactoryFromOptions} over manually writing a factory function wherever possible.
* If using a factory function (`HttpAgentFactory`), **do not import `http.Agent` or `https.Agent`
* statically at the top of the file**.
* Instead, use dynamic `import()` or `require()` to load the module. This ensures that the `http` or `https`
* module is not loaded before `@opentelemetry/instrumentation-http` can instrument it.
*/
agentFactory: HttpAgentFactory;
/**
* User agent header string to be appended to the exporter's value as a prefix.
* Availablie since v1.49.0 of the spec.
* Ref: https://opentelemetry.io/docs/specs/otel/protocol/exporter/#user-agent
*/
userAgent?: string;
}
declare function httpAgentFactoryFromOptions(options: http.AgentOptions | https.AgentOptions): HttpAgentFactory;
//#endregion
export { HttpAgentFactory, OtlpNodeHttpConfiguration, httpAgentFactoryFromOptions };
//# sourceMappingURL=otlp-node-http-configuration.d.mts.map