import { Application, Component, File, Mock, PageContent } from '@/types/index';
import { FormatOptions } from './formatter';
import { ParseOptions } from './parser';
interface ParseContentOptions extends ParseOptions {
    extendContent?: PageContent;
    mocks: Mock[];
    file?: File;
}
/**
 * get mocks
 * page & template mocks
 * @param data page content
 * @returns
 */
export declare const getMocks: (data: PageContent) => Mock[];
/**
 * parse content
 * @param data page content
 * @param opt parse options
 * @returns
 */
export declare const parseContent: (data: PageContent, opt: ParseContentOptions) => Promise<PageContent | null>;
/**
 * format content
 * @param parsed parsed content
 * @param opt options
 * @returns
 */
export declare const formatContent: (parsed: PageContent, opt: FormatOptions) => import("@/types/index").FormattedData;
/**
 * init state
 * parse,mock,merge,formatted result
 * all events & changed will use it to get updated data
 * @param page
 * @param opt
 * @returns
 */
export declare const initState: (page: PageContent, opt: {
    application: Application;
    components: Component[];
    extendPage?: PageContent;
    file?: File;
    locale?: string;
}) => Promise<import("@/types/index").FormattedData | null>;
export {};
