import { type DataSourceApi } from '@grafana/data'; export declare function getCachedPlugin(uid: string): DataSourceApi | undefined; export declare function setCachedPlugin(uid: string, instance: DataSourceApi): void; /** Write a runtime-registered plugin instance. Runtime entries survive {@link clearPluginCache}. */ export declare function setRuntimePlugin(uid: string, instance: DataSourceApi): void; /** * Clear all non-runtime plugin instances. Runtime entries are preserved, * matching the behaviour of the legacy `DatasourceSrv.init()` which reset * `this.datasources` then re-added runtime sources. */ export declare function clearPluginCache(): void; /** * Test helper — resets all module state. Should only be called from tests. * * @internal */ export declare function _resetForTests(): void;