import { ComponentType } from 'react'; import { EventBus } from '../events/types'; import { DataFrame } from '../types/dataFrame'; import { VariableSuggestionsScope, VariableSuggestion } from '../types/dataLink'; import { InterpolateFunction } from '../types/panel'; import { Registry, RegistryItem } from '../utils/Registry'; import { FieldConfigOptionsRegistry } from './FieldConfigOptionsRegistry'; export interface StandardEditorContext { data: DataFrame[]; replaceVariables?: InterpolateFunction; eventBus?: EventBus; getSuggestions?: (scope?: VariableSuggestionsScope) => VariableSuggestion[]; options?: TOptions; instanceState?: TState; isOverride?: boolean; annotations?: DataFrame[]; } export interface StandardEditorProps { value: TValue; onChange: (value?: TValue) => void; context: StandardEditorContext; id?: string; item: RegistryItem & { settings?: TSettings; }; } export interface StandardEditorsRegistryItem extends RegistryItem { editor: ComponentType>; settings?: TSettings; } export declare const standardFieldConfigEditorRegistry: FieldConfigOptionsRegistry; export declare const standardEditorsRegistry: Registry>;