import { MetricReader } from "@opentelemetry/sdk-metrics"; export declare function waitFor(callback: () => boolean | void): Promise; /** * This is a test metric reader that uses an in-memory metric exporter and exposes a method to get the value of a metric given its name and attributes. * * This is useful for testing the values of metrics that are collected by the SDK. * * TODO: We may want to rethink how we access metrics (see `getMetricValue` method) to make it more flexible. */ declare class TestMetricReader extends MetricReader { private _exporter; protected onShutdown(): Promise; protected onForceFlush(): Promise; getMetricValue(name: string, attributes?: { [key: string]: string | number; }): Promise; collectAndExport(): Promise; } export declare function createTestMetricReader(): TestMetricReader; export declare function tearDownTestMetricReader(): void; export {}; //# sourceMappingURL=utils.d.ts.map