import * as _grafana_data from '@grafana/data'; import { DataSourceInstanceSettings, DataQuery, DataSourcePluginMeta, PluginDependencies, PluginInclude, PluginIncludeType, PluginMeta, PluginMetaInfo, PluginSignatureStatus, PluginState, PluginType, LoadingState, QueryEditorProps, TimeRange, SelectableValue } from '@grafana/data'; import { DataSourceWithBackend } from '@grafana/runtime'; declare class DatasourceMock extends DataSourceWithBackend { query: jest.Mock; filterQuery: any; applyTemplateVariables: jest.Mock; getResource: jest.Mock; postResource: jest.Mock; callHealthCheck: jest.Mock; testDatasource: jest.Mock; uid: string; name: string; id: number; type: string; interval: string; importQueries: jest.Mock; init: jest.Mock; getQueryHints: jest.Mock; getQueryDisplayText: jest.Mock; metricFindQuery: jest.Mock; getTagKeys: jest.Mock; getTagValues: jest.Mock; components: {}; meta: _grafana_data.DataSourcePluginMeta<{}>; targetContainsTemplate: jest.Mock; modifyQuery: jest.Mock; getHighlighterExpression: jest.Mock; languageProvider: jest.Mock; getVersion: jest.Mock; interpolateVariablesInQueries: jest.Mock; annotations: {}; annotationQuery: jest.Mock; streamOptionsProvider: jest.Mock; getRef: jest.Mock; protected getRequestHeaders: jest.Mock; } declare const mockDatasource: () => DatasourceMock; declare const mockDatasourceInstanceSettings: () => DataSourceInstanceSettings; declare const mockDataQuery: () => DataQuery; declare const mockDataSourcePluginMeta: () => DataSourcePluginMeta; declare const mockPluginMetaInfo: () => PluginMetaInfo; declare const mockPluginMeta: () => PluginMeta; declare const mockPluginInclude: () => PluginInclude; declare const mockPluginType: () => PluginType; declare const mockPluginIncludeType: () => PluginIncludeType; declare const mockPluginState: () => PluginState; declare const mockPluginDependencies: () => PluginDependencies; declare const mockPluginSignatureStatus: () => PluginSignatureStatus; declare const mockQueryEditorProps: () => QueryEditorProps; declare const mockLoadingState: () => LoadingState; declare const mockTimeRange: () => TimeRange; declare const generateBoolean: () => boolean; declare const undefinedOr: (fn: Function) => any; declare const generateArrayOf: (fn: Function, numberOf?: number) => any[]; /** * Opens a Select or MultiSelect dropdown * * @param {HTMLElement} container The container wrapping the Select or MultiSelect component * @param {string} optionLabel The option text we want to type or search */ declare const openSelect: (container: HTMLElement, optionLabel?: string) => void; /** * Selects an option from the Select or MultiSelect component * * @param {HTMLElement} container The container wrapping the Select or MultiSelect component * @param {string} optionLabel The option we want to select * @param {boolean} [typeOptionLabel=false] If we should type the optional label after opening - this is useful for AsyncSelect */ declare const selectOption: (container: HTMLElement, optionLabel: string, typeOptionLabel?: boolean) => Promise; declare const generateOptions: () => Array>; export { generateArrayOf, generateBoolean, generateOptions, mockDataQuery, mockDataSourcePluginMeta, mockDatasource, mockDatasourceInstanceSettings, mockLoadingState, mockPluginDependencies, mockPluginInclude, mockPluginIncludeType, mockPluginMeta, mockPluginMetaInfo, mockPluginSignatureStatus, mockPluginState, mockPluginType, mockQueryEditorProps, mockTimeRange, openSelect, selectOption, undefinedOr };