import { Plugin } from './plugin.js';
import { IMetaRenderer, IAPIDefinition } from '../meta-api/module.js';
import Editor from './editor.js';
import { QueryEngine } from './selector/selector.js';
export interface IToolboxWhitelist {
    [K: string]: string[];
}
export declare class ToolboxEntry {
    private toolbox;
    private entry;
    constructor(toolbox: Toolbox, entry: IAPIDefinition);
    dispose(): void;
    update(entry: IAPIDefinition): void;
}
export declare class Toolbox extends Plugin {
    private editor?;
    renderer?: IMetaRenderer;
    private entries;
    private whitelist;
    onInstall(editor: Editor): void;
    setEntries(entries: IAPIDefinition[]): void;
    addEntry(entry: IAPIDefinition, position?: number): ToolboxEntry;
    removeEntry(entry: IAPIDefinition): void;
    updateEntry(oldEntry: IAPIDefinition, entry: IAPIDefinition): void;
    setWhitelist(whitelist: IToolboxWhitelist | null): void;
    whitelistEntry(id: string, whitelist: string[]): void;
    removeWhitelistEntry(id: string): void;
    update(): void;
    onInject(): void;
    registerQueryHandlers(engine: QueryEngine): void;
}
export default Toolbox;
