declare module 'medium-editor' {
    interface MediumEditorOptions {
        toolbar?: {
            buttons?: string[];
        };
        placeholder?: {
            text: string;
        };
        disableReturn?: boolean;
        disableExtraSpaces?: boolean;
    }

    class MediumEditor {
        constructor(
            elements: string | HTMLElement | NodeListOf<HTMLElement>,
            options?: MediumEditorOptions
        );
        destroy(): void;
    }

    export = MediumEditor;
}
