import { AbstractWraplet, Constructable, Core } from "wraplet"; import { ExhibitionPreview } from "./ExhibitionPreview"; import { MonacoEditorOptions } from "./MonacoEditor"; import { editor } from "monaco-editor"; import { Editor } from "./types/Editor"; export type ExhibitionOptions = { refreshPreviewOnInit?: boolean; updaterSelector?: string; }; export type ExhibitionMapOptions = { defaultMonacoOptions?: editor.IStandaloneEditorConstructionOptions | null; initEditors?: boolean; }; declare const ExhibitionMap: { editors: { selector: string | undefined; multiple: true; required: false; Class: Constructable; args: [] | [MonacoEditorOptions]; }; preview: { selector: string; multiple: false; required: true; Class: typeof ExhibitionPreview; }; }; export declare class Exhibition extends AbstractWraplet { private options; constructor(core: Core, options?: ExhibitionOptions); addEditor(editor: Editor): void; getPreview(): ExhibitionPreview; updatePreview(): Promise; static createMultiple(node: ParentNode, attribute?: string, options?: ExhibitionOptions, mapOptions?: ExhibitionMapOptions, map?: typeof ExhibitionMap): Exhibition[]; static create(element: HTMLElement, options?: ExhibitionOptions, mapOptions?: ExhibitionMapOptions, map?: typeof ExhibitionMap): Exhibition; static getMap(options?: ExhibitionMapOptions, map?: typeof ExhibitionMap): typeof ExhibitionMap; } export {};