/**
 * Shared utilities for collector commands
 */
export declare const DEFAULT_COLLECTOR_PORT = 4318;
export interface HealthResponse {
    status: string;
    tracesReceived?: number;
    logsReceived?: number;
}
export interface ServiceStats {
    summary: {
        totalServices: number;
        aliveServices: number;
        totalTraces: number;
    };
    services: Record<string, ServiceInfo>;
}
export interface ServiceInfo {
    firstSeen: string;
    lastSeen: string;
    totalTraces: number;
    isAlive: boolean;
}
export interface OTLPTracePayload {
    resourceSpans: Array<{
        resource: {
            attributes: Array<{
                key: string;
                value: {
                    stringValue?: string;
                    boolValue?: boolean;
                };
            }>;
        };
        scopeSpans: Array<{
            scope: {
                name: string;
            };
            spans: Array<{
                traceId: string;
                spanId: string;
                name: string;
                kind: number;
                startTimeUnixNano: string;
                endTimeUnixNano: string;
                attributes: Array<{
                    key: string;
                    value: {
                        stringValue?: string;
                    };
                }>;
                status: {
                    code: number;
                };
            }>;
        }>;
    }>;
}
/**
 * Check if the collector is healthy
 */
export declare function checkHealth(port: number): Promise<HealthResponse | null>;
/**
 * Get service statistics from the collector
 */
export declare function getServiceStats(port: number): Promise<ServiceStats | null>;
/**
 * Create a minimal test trace payload
 */
export declare function createTestTrace(serviceName: string): OTLPTracePayload;
export interface SendTraceResult {
    success: boolean;
    statusCode?: number;
    latencyMs: number;
    error?: string;
}
/**
 * Send a test trace to the collector
 */
export declare function sendTestTrace(port: number, trace: OTLPTracePayload, authToken?: string): Promise<SendTraceResult>;
/**
 * Format relative time (e.g., "30s ago", "2m ago")
 */
export declare function formatRelativeTime(isoString: string): string;
/**
 * Check if a port is responding (basic connectivity check)
 */
export declare function checkPort(port: number): Promise<{
    open: boolean;
    service?: string;
}>;
//# sourceMappingURL=utils.d.ts.map