import type { IScopedContext, RendererEnv } from 'jamis-core';
import type { AppSchema, PageSchema } from '../types';
export declare function embed(container: string | HTMLElement, schema: AppSchema | PageSchema, props?: any, envParam?: Partial<RendererEnv>): Promise<IScopedContext & {
    /**
     * 需要传递完整的props来从最顶层重新渲染, 低效且容易出bug
     * @deprecated 不推荐使用, 使用rootRenderer.props.store对应的方法来更新页面(setPages), 更新location(updateLocation), 更新数据域(setData)
     */
    updateProps: (props: Record<string, any>, callback?: () => void) => void;
    /**
     * 更新schema和props
     */
    updateSchema: (newSchema: AppSchema | PageSchema, props: Record<string, any>) => void;
    unmount: () => void;
}>;
