/**
 * Parse Gateway GET /metrics (Prometheus text) into a compact TUI-friendly snapshot.
 */
/**
 * Build a compact observability snapshot for the Portal Monitoring TUI.
 */
export declare function summarizeGatewayPrometheusMetrics(metricsText: string): {
    snapshotAt: string;
    totals: {
        httpRequests: number;
        httpRequestErrors: number;
        httpErrorRate: number;
        runsCreated: number;
        runsStarted: number;
        runsCompleted: number;
        runsActive: number;
        sseActive: number;
        sseMessages: number;
        idempotencyStoreSize: number;
        httpLatencyAvgMs: number | null;
        queueJobsWaiting: number;
        queueJobsActive: number;
        queueJobsFailed: number;
        shieldDecisions: number;
        shieldBlocks: number;
        shieldMasks: number;
        shieldRewrites: number;
    };
    topRoutes: Array<{
        key: string;
        count: number;
    }>;
    statsLines: string[];
    routeLines: string[];
};
export type ShieldMetricRow = {
    key: string;
    count: number;
};
/** Labeled Shield counters from Prometheus — for the Shield monitoring dashboard. */
export declare function summarizeShieldPrometheusBreakdown(metricsText: string): {
    totals: {
        decisions: number;
        blocks: number;
        masks: number;
        rewrites: number;
    };
    blockRows: ShieldMetricRow[];
    maskRows: ShieldMetricRow[];
    decisionRows: ShieldMetricRow[];
    breakdownLines: string[];
};
//# sourceMappingURL=gateway-observability.d.ts.map