import type { AuditEvent, AuditSink } from "../types.js";
/**
 * Emits audit events as OpenTelemetry spans/events.
 *
 * Two modes:
 * 1. **Active span** (host app with OTel tracing): adds audit as a span event
 * 2. **Standalone**: bootstraps its own TracerProvider with an OTLP HTTP
 *    exporter and creates a root span per audit event
 *
 * Requires `OTEL_EXPORTER_OTLP_ENDPOINT` to be set.
 *
 * Packages needed for standalone mode (all optional peer deps):
 * - @opentelemetry/api
 * - @opentelemetry/sdk-trace-node
 * - @opentelemetry/exporter-trace-otlp-http
 * - @opentelemetry/resources
 */
export declare class OTelSink implements AuditSink {
    readonly name = "otel";
    private api;
    private tracer;
    private provider;
    private ready;
    private disabled;
    private initPromise;
    private pendingEvents;
    private static readonly MAX_PENDING;
    constructor();
    private init;
    private drainPending;
    emit(event: AuditEvent): void;
    private emitSpan;
    flush(): Promise<void>;
    close(): Promise<void>;
}
//# sourceMappingURL=otel.d.ts.map