import type { PipelineStateValueV1 } from '../../../sdk'; export interface PickCollectorStateArgs { /** Per-source run states from `useCollectorState`, keyed by source name. */ collectorStates: Record | undefined; /** Name of the source whose card is being rendered. */ sourceName: string | undefined; } /** * Resolves the run state to show on a source card. * * The server keys collector metrics by the deployed `config.sources` name, which * is normally the form's source name. A single reported collector is * unambiguous and used as-is — that covers pre-multi-source pipelines, whose * collector is named `collector-source` regardless of the user's source name. * Anything else returns `undefined` so the card shows no state rather than * another source's. */ export declare const pickCollectorState: ({ collectorStates, sourceName }: PickCollectorStateArgs) => PipelineStateValueV1 | undefined;