import * as react_jsx_runtime from 'react/jsx-runtime'; import * as _backstage_core_components from '@backstage/core-components'; import { TableColumn } from '@backstage/core-components'; import * as _backstage_core_plugin_api from '@backstage/core-plugin-api'; import { Entity } from '@backstage/catalog-model'; type PrometheusDisplayableAlert = PrometheusRule & PrometheusAlert; type PrometheusRule = { name: string; state: 'firing' | 'pending' | 'inactive'; query: string; duration: number; health: string; evaluationTime: string; lastEvaluation: string; type: string; alerts: PrometheusAlert[]; labels?: { [key: string]: string; }; annotations?: PrometheusAnnotations; }; interface PrometheusAnnotations { [key: string]: string; } type PrometheusAlert = { activeAt: string; annotations: PrometheusAnnotations; labels: { alertname: string; }; state: 'firing' | 'pending' | 'inactive'; value: string; }; type OnRowClick = (arg: PrometheusDisplayableAlert) => void; declare const backstagePluginPrometheusPlugin: _backstage_core_plugin_api.BackstagePlugin<{ root: _backstage_core_plugin_api.RouteRef; }, {}, {}>; declare const EntityPrometheusContent: ({ step, range, graphType, extraColumns, showAlertsAnnotations, showAlertsLabels, }: { step?: number; range?: { hours?: number; minutes?: number; }; graphType?: "line" | "area"; extraColumns?: _backstage_core_components.TableColumn[]; showAlertsAnnotations?: boolean; showAlertsLabels?: boolean; }) => react_jsx_runtime.JSX.Element; declare const EntityPrometheusAlertCard: ({ extraColumns, onRowClick, showAnnotations, showLabels, showInactiveAlerts, }: { extraColumns?: _backstage_core_components.TableColumn[]; onRowClick?: OnRowClick; showAnnotations?: boolean; showLabels?: boolean; showInactiveAlerts?: boolean; }) => react_jsx_runtime.JSX.Element; declare const EntityPrometheusGraphCard: ({ step, range, graphType, enableQueryTemplating, query, title, }: { step?: number; range?: { hours?: number; minutes?: number; }; graphType?: "line" | "area"; query?: string; enableQueryTemplating?: boolean; title?: string; }) => react_jsx_runtime.JSX.Element; declare const PrometheusGraph: ({ query, range, step, dimension, graphType, title, }: { query: string; range?: { hours?: number; minutes?: number; }; step?: number; dimension?: string; graphType?: "line" | "area"; title?: string; }) => react_jsx_runtime.JSX.Element; declare const PrometheusAlertStatus: ({ alerts, extraColumns, onRowClick, showAnnotations, showLabels, showInactiveAlerts, }: { alerts: string[] | "all"; extraColumns?: TableColumn[]; onRowClick?: OnRowClick; showAnnotations?: boolean; showLabels?: boolean; showInactiveAlerts?: boolean; }) => react_jsx_runtime.JSX.Element; declare const isPrometheusAvailable: (entity: Entity) => boolean; export { EntityPrometheusAlertCard, EntityPrometheusContent, EntityPrometheusGraphCard, PrometheusAlertStatus, type PrometheusDisplayableAlert, PrometheusGraph, backstagePluginPrometheusPlugin, isPrometheusAvailable };