import { NoopExporter } from '@opencensus/web-core/build/src/exporters/noop_exporter'; import { Config, ExporterConfig, Propagation, Span, SpanKind, TracerBase } from '@opencensus/web-types'; import { AggregationType, Measure, MeasureUnit, Stats } from '@opencensus/web-types/build/src/stats/types'; import { TagMap } from '@opencensus/web-types/build/src/tags/tag-map'; declare let tracer: TracerBase; declare const startTracing: (config: Config) => Promise<() => void>; declare const getNewPropagation: () => Promise; declare const globalStats: Stats; export interface PrometheusExporterOptions extends ExporterConfig { prefix?: string; port?: number; startServer?: boolean; } declare class PrometheusStatsExporter { onRegisterView: (..._args: readonly any[]) => any; onRecord: (..._args: readonly any[]) => any; start: (..._args: readonly any[]) => any; stop: (..._args: readonly any[]) => any; stopServer: (..._args: readonly any[]) => any; constructor(..._args: any[]); } declare const getPrometheusExporter: (...args: any[]) => Promise; export interface JaegerTraceExporterOptions extends ExporterConfig { serviceName: string; tags?: any[]; host?: string; port?: number; maxPacketSize?: number; } declare class JaegerTraceExporter extends NoopExporter { constructor(..._args: any[]); } declare const getJaegerTraceExporter: (...args: any[]) => Promise; declare const getTagMap: () => Promise; export { AggregationType, Config as TracingConfig, globalStats, getJaegerTraceExporter, Measure, MeasureUnit, getPrometheusExporter, Span, SpanKind, startTracing, getTagMap, getNewPropagation, tracer, };