import type { EventType } from '@redocly/realm-asyncapi-sdk/cli-telemetry'; import type { CollectedExtension } from './extension-sampling.js'; import type { BundledApiDefinition } from '../../../server/plugins/api-docs/loader.js'; import type { LifecycleContext } from '../../../server/types'; export type CollectedDefinitionBase = { id: string; uri: string; projectBuildId: string; object: TObject; }; export type CollectedStats = { path: string; xExtensions?: Record; }; export type StatsCollector = { type: BundledApiDefinition['type']; label: string; event: EventType; object: TObject; computeStats: (definition: BundledApiDefinition) => Promise; send: (stats: TStats, base: CollectedDefinitionBase) => void; }; export declare function runStatsCollector(lifecycleContext: LifecycleContext, telemetryEnabled: boolean, { type, label, event, object, computeStats, send }: StatsCollector): Promise; //# sourceMappingURL=run-stats-collector.d.ts.map