import JsonAsset from 'jgb-plugin-json/lib/JsonAsset'; interface IAppWindowJson { navigationBarBackgroundColor?: string; navigationBarTextStyle?: string; navigationBarTitleText?: string; enablePullDownRefresh?: boolean; backgroundColor?: string; onReachBottomDistance?: number; } interface IPageJson extends IAppWindowJson { usingComponents?: { [name: string]: string; }; component?: boolean; } interface IAliAppTabBar { textColor?: string; selectedColor?: string; backgroundColor?: string; items?: IAliAppJsonTabarItemConfig[]; } interface IAliAppJsonTabarItemConfig { [key: string]: string; pagePath?: string; name?: string; icon?: string; activeIcon?: string; } interface IAliappWindowJson { defaultTitle?: string; pullRefresh?: boolean; allowsBounceVertical?: string; titleBarColor?: string; } interface IAliAppJson { pages?: string[]; window?: IAliappWindowJson; tabBar?: IAliAppTabBar; } declare const _default: any; export default _default; /** * 找到组件路径,并返回相对编译后的路径 * @param componentPath */ export declare function findComponent(componentPath: string, ctx: JsonAsset): Promise; export declare function usingNpmComponents(this: JsonAsset, key: string, value: string, pageJson: IPageJson, dependences: Set, components: string[]): Promise; /** * 微信page|component.json转支付宝微信page|component.json * @param json */ export declare function formatAsAliappPageJson(json: any): IAliappWindowJson; /** * 微信app.json转支付宝app.json * @param json */ export declare function formatAsAliappJson(json: any): IAliAppJson; export declare function formatAsAliappTabBarJson(tabBar: any): IAliAppTabBar; export declare function formatAsAliappTabBarItemsJson(json: any[]): IAliAppJsonTabarItemConfig[];