/**
 * Unified Observability Metrics
 *
 * Prometheus-compatible metrics for Agent Anchor, A2A, and Sandbox subsystems.
 * Extends the existing intent metrics with governance-specific instrumentation.
 *
 * @packageDocumentation
 */
import { Registry, Counter, Histogram, Gauge, Summary } from 'prom-client';
/**
 * Dedicated registry for Agent Anchor observability metrics
 */
export declare const anchorRegistry: Registry<"text/plain; version=0.0.4; charset=utf-8">;
/**
 * Total agents registered
 */
export declare const agentsRegisteredTotal: Counter<"level" | "tenant_id" | "domain">;
/**
 * Current agent count by state
 */
export declare const agentsCurrentByState: Gauge<"tenant_id" | "state">;
/**
 * Agent state transitions
 */
export declare const agentStateTransitions: Counter<"action" | "tenant_id" | "from_state" | "to_state">;
/**
 * Agent registration latency
 */
export declare const agentRegistrationDuration: Histogram<"tenant_id">;
/**
 * Trust score computations
 */
export declare const trustScoreComputations: Counter<"tenant_id" | "trigger">;
/**
 * Trust score computation latency
 */
export declare const trustScoreComputationDuration: Histogram<"tenant_id">;
/**
 * Trust score distribution
 */
export declare const trustScoreDistribution: Histogram<"tenant_id">;
/**
 * Current agents by tier
 */
export declare const agentsByTier: Gauge<"tenant_id" | "tier">;
/**
 * Tier transitions
 */
export declare const tierTransitions: Counter<"tenant_id" | "from_tier" | "to_tier" | "direction">;
/**
 * Human approval requests
 */
export declare const humanApprovalRequests: Counter<"tenant_id" | "outcome" | "target_tier">;
/**
 * Attestations submitted
 */
export declare const attestationsSubmitted: Counter<"type" | "tenant_id" | "outcome">;
/**
 * Attestation processing latency
 */
export declare const attestationProcessingDuration: Histogram<"type" | "tenant_id">;
/**
 * Attestation batch sizes
 */
export declare const attestationBatchSize: Summary<"tenant_id">;
/**
 * Attestations pending flush
 */
export declare const attestationsPending: Gauge<"type">;
/**
 * A2A invocations
 */
export declare const a2aInvocationsTotal: Counter<"action" | "outcome" | "caller_tenant" | "callee_tenant">;
/**
 * A2A invocation latency
 */
export declare const a2aInvocationDuration: Histogram<"action" | "caller_tenant">;
/**
 * A2A chain depth distribution
 */
export declare const a2aChainDepth: Histogram<"root_tenant">;
/**
 * A2A active chains
 */
export declare const a2aActiveChains: Gauge<string>;
/**
 * A2A trust verification results
 */
export declare const a2aTrustVerifications: Counter<"outcome" | "caller_tier">;
/**
 * A2A delegation usage
 */
export declare const a2aDelegationUsage: Counter<"outcome" | "delegator_tenant" | "delegate_tenant">;
/**
 * A2A circuit breaker state changes
 */
export declare const a2aCircuitBreakerStateChanges: Counter<"from_state" | "to_state" | "target_aci">;
/**
 * A2A registered endpoints
 */
export declare const a2aRegisteredEndpoints: Gauge<"status">;
/**
 * Sandbox containers created
 */
export declare const sandboxContainersCreated: Counter<"tenant_id" | "tier" | "runtime">;
/**
 * Sandbox containers active
 */
export declare const sandboxContainersActive: Gauge<"tier" | "runtime">;
/**
 * Sandbox container lifecycle duration
 */
export declare const sandboxContainerDuration: Histogram<"tier" | "exit_reason">;
/**
 * Capability requests
 */
export declare const capabilityRequests: Counter<"tenant_id" | "outcome" | "capability_type">;
/**
 * Network policy violations
 */
export declare const networkPolicyViolations: Counter<"tenant_id" | "tier" | "violation_type">;
/**
 * Filesystem policy violations
 */
export declare const filesystemPolicyViolations: Counter<"tenant_id" | "tier" | "violation_type">;
/**
 * Resource usage per sandbox
 */
export declare const sandboxResourceUsage: Gauge<"resource_type" | "container_id">;
/**
 * API request count
 */
export declare const apiRequestsTotal: Counter<"path" | "method" | "status_code">;
/**
 * API request latency
 */
export declare const apiRequestDuration: Histogram<"path" | "method">;
/**
 * API errors
 */
export declare const apiErrors: Counter<"path" | "method" | "error_type">;
/**
 * PostgreSQL replication lag in bytes
 */
export declare const dbReplicationLagBytes: Gauge<"cluster" | "replica_id" | "replica_host">;
/**
 * PostgreSQL replication lag in seconds
 */
export declare const dbReplicationLagSeconds: Gauge<"cluster" | "replica_id" | "replica_host">;
/**
 * PostgreSQL replica status
 */
export declare const dbReplicaStatus: Gauge<"status" | "cluster" | "replica_id">;
/**
 * PostgreSQL cluster health
 */
export declare const dbClusterHealth: Gauge<"cluster">;
/**
 * Number of healthy PostgreSQL replicas
 */
export declare const dbHealthyReplicaCount: Gauge<"cluster">;
/**
 * PostgreSQL failover events
 */
export declare const dbFailoverEvents: Counter<"reason" | "success" | "cluster">;
/**
 * PostgreSQL health check duration
 */
export declare const dbHealthCheckDuration: Histogram<"role" | "cluster" | "node_id">;
/**
 * A3I cache operations
 */
export declare const a3iCacheOperations: Counter<"result" | "operation">;
/**
 * A3I sync operations
 */
export declare const a3iSyncOperations: Counter<"result" | "entity_type">;
/**
 * A3I sync latency
 */
export declare const a3iSyncDuration: Histogram<"entity_type">;
/**
 * Record an agent registration
 */
export declare function recordAgentRegistration(tenantId: string, domains: string[], level: number, durationSeconds: number): void;
/**
 * Record a trust score computation
 */
export declare function recordTrustScoreComputation(tenantId: string, trigger: 'request' | 'attestation' | 'decay', score: number, durationSeconds: number): void;
/**
 * Record an A2A invocation
 */
export declare function recordA2AInvocation(callerTenant: string, calleeTenant: string, action: string, outcome: 'success' | 'failure' | 'timeout' | 'rejected', durationSeconds: number, chainDepth: number): void;
/**
 * Record an attestation
 */
export declare function recordAttestation(tenantId: string, type: string, outcome: 'success' | 'failure', durationSeconds: number): void;
/**
 * Record a sandbox operation
 */
export declare function recordSandboxContainer(tenantId: string, tier: number, runtime: 'gvisor' | 'docker' | 'none', operation: 'created' | 'destroyed', durationSeconds?: number, exitReason?: 'completed' | 'timeout' | 'error' | 'killed'): void;
/**
 * Record database replication lag metrics
 */
export declare function recordDbReplicationLag(cluster: string, replicaId: string, replicaHost: string, lagBytes: number, lagSeconds: number, status: 'streaming' | 'catchup' | 'potential' | 'disconnected' | 'failed' | 'unknown'): void;
/**
 * Record database cluster health metrics
 */
export declare function recordDbClusterHealth(cluster: string, healthy: boolean, healthyReplicaCount: number): void;
/**
 * Record database failover event
 */
export declare function recordDbFailover(cluster: string, reason: string, success: boolean): void;
/**
 * Record database health check duration
 */
export declare function recordDbHealthCheck(cluster: string, nodeId: string, role: 'primary' | 'replica' | 'witness', durationSeconds: number): void;
/**
 * Get metrics output
 */
export declare function getMetrics(): Promise<string>;
/**
 * Get metrics content type
 */
export declare function getMetricsContentType(): string;
//# sourceMappingURL=metrics.d.ts.map