import { Layout, Schema, BaseComponentModel } from "../../models";
import "./index.scss";
import LoadPlugin from "./load-plugin";
export default class LayoutDesign extends LoadPlugin {
    page: any;
    layout: Layout;
    list: Array<BaseComponentModel>;
    schema: Schema;
    selectComponent: BaseComponentModel | {};
    typeList: Array<any>;
    showPreview: boolean;
    get type(): any;
    onClickType(type: any): void;
    onPreView(): void;
    onSave(): Promise<void>;
    /**
     * 保存布局信息
     */
    saveLayout(): Promise<{
        data: Schema;
        thumbnail: string;
    }>;
    /**
     * 根据布局生成图片
     */
    toImage(): Promise<string>;
    /**
     * 压缩base64图片
     * @param base64String
     * @param w
     * @param quality
     */
    compress(base64String: string, w: number, quality: number): Promise<string>;
}
