interface IBaseState {
    state: {
        [key: string]: any;
    };
    computed: {
        [key: string]: any;
    };
    dataset?: {
        state?: {};
    };
}
declare enum EPLATFORM {
    WEB = "WEB",
    /**
     * 拼写错误
     * 兼容性无法修改
     */
    MINIPROGRAM = "MINIPROGRAME"
}
export declare const subPackageName = "";
export declare let app: IAppAPI;
export declare function registerApp(_app?: IAppAPI): void;
export interface IAppAPI extends IBaseState {
    id: string;
    platform: EPLATFORM;
    app?: IAppAPI;
    $app?: IAppAPI;
    mainApp?: IAppAPI;
    common: {};
    enumOptions?: {};
    domain: string;
    cloud: any;
    /**
     * @deprecated
     */
    dataSources: any;
    utils: {
        formatDate: Function;
        get: Function;
        set: Function;
        _getConfig: Function;
    };
    /**
     * 内置方法
     */
    _setStateVal: ({ varPath, val }: {
        varPath: any;
        val: any;
    }) => void;
    setState: (state: any) => void;
    /**
     * 微信继承方法
     */
    showLoading?: (param?: any) => void;
    hideLoading?: () => void;
    showToast?: (param: any) => void;
}
export declare function removeGlboalApi(): void;
export interface IPageAPI extends IBaseState {
    $page?: IPageAPI;
    handler: {
        [key: string]: any;
    };
    props: {
        [key: string]: any;
    };
    widgets: {
        [key: string]: any;
    };
    setState: (state: any) => void;
    _dataBinds: {
        [key: string]: any;
    };
}
export declare function createPageApi(): IPageAPI;
export {};
