import { ExportResult, BindOnceFuture } from '@opentelemetry/core'; import { OTLPExporterError, OTLPExporterConfigBase } from './types'; /** * Collector Exporter abstract base class */ export declare abstract class OTLPExporterBase { readonly url: string; readonly hostname: string | undefined; readonly timeoutMillis: number; protected _concurrencyLimit: number; protected _sendingPromises: Promise[]; protected _shutdownOnce: BindOnceFuture; /** * @param config */ constructor(config?: T); /** * Export items. * @param items * @param resultCallback */ export(items: ExportItem[], resultCallback: (result: ExportResult) => void): void; private _export; /** * Shutdown the exporter. */ shutdown(): Promise; /** * Exports any pending spans in the exporter */ forceFlush(): Promise; /** * Called by _shutdownOnce with BindOnceFuture */ private _shutdown; abstract onShutdown(): void; abstract onInit(config: T): void; abstract send(items: ExportItem[], onSuccess: () => void, onError: (error: OTLPExporterError) => void): void; abstract getDefaultUrl(config: T): string; } //# sourceMappingURL=OTLPExporterBase.d.ts.map