import type { ConnectionConnectivityResult, PipelineConnectivityResult } from '../../../hooks/queries'; export interface PickSourceConnectivityArgs { /** Result of the dashboard's connectivity probe, keyed by source name. */ connectivity: PipelineConnectivityResult | undefined; /** Name of the source whose card is being rendered. */ sourceName: string | undefined; } /** * Resolves the connectivity status to show on a source card. * * The probe validates the whole stored config in one request, so the backend * reports failures for every source at once and stamps each with the source it * belongs to. `sourcesByName` holds those, keyed by the name the backend * reported; a source it blamed gets its own status, and a source it did not * mention falls back to `source` — which carries only the failures the backend * left unattributed, so one source's problem cannot mark the rest. */ export declare const pickSourceConnectivity: ({ connectivity, sourceName }: PickSourceConnectivityArgs) => ConnectionConnectivityResult | undefined;