@bytedance/mona-client-web
Version:
web for mona
37 lines (36 loc) • 933 B
TypeScript
import { AppConfig } from '@bytedance/mona';
import React from 'react';
export declare const WrapperComponent: React.FC<{
title: string;
}>;
export declare const NoMatch: React.FC<{
defaultPath: string;
}>;
export declare const HistorySetWrapper: React.FC;
export declare function createWebApp(Component: React.ComponentType<any>, routes: {
path: string;
title: string;
component: React.ComponentType<any>;
}[], options?: {
tabBar?: AppConfig['tabBar'];
navBar?: AppConfig['window'];
defaultPath?: string;
light?: any;
}, libraryConfig?: {
ConfigProvider: React.FC<{
prefixCls: string;
locale: any;
children?: React.ReactNode;
}>;
zh_CN: any;
prefixCls?: string;
}): {
provider: () => {
render: ({ dom }: {
dom: Element | Document;
}) => void;
destroy({ dom }: {
dom: Element;
}): void;
};
};