import type { PipelineComponentStatus } from '../../../sdk/pipeline/types'; export interface GetDeletingSourceNamesArgs { /** `components` from the pipeline status response (one entry per running component). */ components: PipelineComponentStatus[] | undefined; /** Every name in `config.sources`, deployed or not — the pipeline's desired state. */ configSourceNames: Set; } /** * Names of the sources RDI is still tearing down. * * Removing a source from an ongoing pipeline is a full-config redeploy: the API * returns as soon as the new config is accepted, but the collector keeps running * for a while after that. A source that is gone from `config.sources` while its * collector component is still reported is therefore mid-deletion. * * Only a component RDI types as a *source's* collector counts — see * {@link getComponentSourceName}. The `collector-` name prefix is shared with * pipeline-wide infrastructure (`collector-api`), which would otherwise read as * a source named `api` that is forever deleting. * * Reports nothing unless at least one reported collector matches a configured * source, except when the configured source set is empty: then every named * source collector is an orphan from the final-source deletion. This preserves * the old protection against uncorrelatable legacy status while allowing the * final collector teardown to remain visible. */ export declare const getDeletingSourceNames: ({ components, configSourceNames }: GetDeletingSourceNamesArgs) => string[];