import { ComponentSchema, PageSchema } from '../../../types/epic-designer';
import { DesignerProps } from './types';
/**
 * 接受一个PageSchema对象作为参数。根据传入的schemas和script属性，更新页面对应的数据
 * @param pageSchema
 */
declare function setData(schema: PageSchema): void;
/**
 * 返回当前页面数据的 PageSchema 对象，包含页面当前的 schemas 和 script 数据。
 */
declare function getData(): PageSchema;
/**
 * 重置页面数据为默认数据。
 */
declare function reset(): void;
/**
 * 预览
 */
declare function handlePreview(): void;
declare function __VLS_template(): {
    slots: {
        header?(_: {}): any;
        "header-prefix"?(_: {}): any;
        "header-prefix"?(_: {}): any;
        "header-title"?(_: {}): any;
        "header-right-prefix"?(_: {}): any;
        "header-right-action"?(_: {}): any;
        "header-right-suffix"?(_: {}): any;
    };
    refs: {
        previewRef: any;
    };
    attrs: Partial<{}>;
};
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
declare const __VLS_component: import('vue').DefineComponent<DesignerProps, {
    revoke: {
        recordList: import('vue').Ref<{
            type: string;
            componentSchema: string;
        }[], import('../../../../utils').RecordModel[] | {
            type: string;
            componentSchema: string;
        }[]>;
        undoList: import('vue').Ref<{
            type: string;
            componentSchema: string;
        }[], import('../../../../utils').RecordModel[] | {
            type: string;
            componentSchema: string;
        }[]>;
        currentRecord: import('vue').Ref<{
            type: string;
            componentSchema: string;
        } | null, import('../../../../utils').RecordModel | {
            type: string;
            componentSchema: string;
        } | null>;
        push: (componentSchema: ComponentSchema[], type?: string) => void;
        undo: () => import('../../../../utils').RecordModel | false;
        redo: () => import('../../../../utils').RecordModel | false;
        reset: () => void;
    };
    setData: typeof setData;
    getData: typeof getData;
    reset: typeof reset;
    preview: typeof handlePreview;
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
    reset: (...args: any[]) => void;
    ready: (...args: any[]) => void;
    save: (...args: any[]) => void;
    toggleDeviceMode: (...args: any[]) => void;
    saveSourceData: (...args: any[]) => void;
    deleteSourceData: (...args: any[]) => void;
    updateSourceData: (...args: any[]) => void;
}, string, import('vue').PublicProps, Readonly<DesignerProps> & Readonly<{
    onReset?: ((...args: any[]) => any) | undefined;
    onReady?: ((...args: any[]) => any) | undefined;
    onSave?: ((...args: any[]) => any) | undefined;
    onToggleDeviceMode?: ((...args: any[]) => any) | undefined;
    onSaveSourceData?: ((...args: any[]) => any) | undefined;
    onDeleteSourceData?: ((...args: any[]) => any) | undefined;
    onUpdateSourceData?: ((...args: any[]) => any) | undefined;
}>, {
    title: string;
    source: any;
    disabledZoom: boolean;
    hiddenHeader: boolean;
    lockDefaultSchemaEdit: boolean;
    formMode: boolean;
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
export default _default;
type __VLS_WithTemplateSlots<T, S> = T & {
    new (): {
        $slots: S;
    };
};
