import { DataSourceRef } from '@grafana/schema'; import { KeyValue } from '../types/data'; import { DataSourceInstanceSettings, DataSourceJsonData, DataSourcePluginOptionsEditorProps, DataSourceSettings } from '../types/datasource'; import { SelectableValue } from '../types/select'; /** * Convert instance settings to a reference * * @public */ export declare function getDataSourceRef(ds: DataSourceInstanceSettings): DataSourceRef; /** * Returns true if the argument is a DataSourceRef * * @public */ export declare function isDataSourceRef(ref: unknown): ref is DataSourceRef; /** * Get the UID from a string of reference * * @public */ export declare function getDataSourceUID(ref: DataSourceRef | string | null): string | undefined; export declare const onUpdateDatasourceOption: (props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings) => (event: React.SyntheticEvent) => void; export declare const onUpdateDatasourceJsonDataOption: (props: DataSourcePluginOptionsEditorProps, key: K) => (event: React.SyntheticEvent) => void; export declare const onUpdateDatasourceSecureJsonDataOption: (props: DataSourcePluginOptionsEditorProps, key: string) => (event: React.SyntheticEvent) => void; export declare const onUpdateDatasourceJsonDataOptionSelect: (props: DataSourcePluginOptionsEditorProps, key: K) => (selected: SelectableValue) => void; export declare const onUpdateDatasourceJsonDataOptionChecked: (props: DataSourcePluginOptionsEditorProps, key: K) => (event: React.SyntheticEvent) => void; export declare const onUpdateDatasourceSecureJsonDataOptionSelect: (props: DataSourcePluginOptionsEditorProps, key: string) => (selected: SelectableValue) => void; export declare const onUpdateDatasourceResetOption: (props: DataSourcePluginOptionsEditorProps, key: string) => (event: React.MouseEvent) => void; export declare function updateDatasourcePluginOption(props: DataSourcePluginOptionsEditorProps, key: keyof DataSourceSettings, val: unknown): void; export declare const updateDatasourcePluginJsonDataOption: (props: DataSourcePluginOptionsEditorProps, key: K, val: unknown) => void; export declare const updateDatasourcePluginSecureJsonDataOption: (props: DataSourcePluginOptionsEditorProps, key: string, val: unknown) => void; export declare const updateDatasourcePluginResetOption: (props: DataSourcePluginOptionsEditorProps, key: string) => void;