/**
 * Pipeline-level OTEL integration — auto-attaches an OTEL exporter when
 * OTEL_EXPORTER_OTLP_ENDPOINT is set. Pipelines call `withOtelPipeline()`
 * to get a configured exporter + shutdown handle without manual wiring.
 */
import { type OtelExportConfig, type OtelExporter } from './trace/otel-export';
export interface OtelPipelineHandle {
    /** The active exporter, or undefined if no endpoint is configured. */
    exporter: OtelExporter | undefined;
    /** Call at pipeline end to flush + shutdown. Safe to call even if exporter is undefined. */
    shutdown(): Promise<void>;
}
export interface OtelPipelineOptions {
    /** Override OTEL config. */
    otelConfig?: OtelExportConfig;
    /** Pipeline-specific resource attributes. */
    pipelineKind?: string;
    pipelineId?: string;
}
/**
 * Create an OTEL exporter scoped to a pipeline run. Auto-reads
 * OTEL_EXPORTER_OTLP_ENDPOINT from env when no explicit config is passed.
 *
 * Returns a handle with `exporter` (possibly undefined) and `shutdown()`.
 */
export declare function withOtelPipeline(opts?: OtelPipelineOptions): OtelPipelineHandle;
/**
 * Check if OTEL export is configured (endpoint is set).
 */
export declare function isOtelConfigured(): boolean;
//# sourceMappingURL=otel-pipeline.d.ts.map