import React from 'react'; import type { ConfigProviderProps as AntdConfigProviderProps } from 'antd'; import type { ConfigProviderProps as AntdMobileConfigProviderProps } from 'antd-mobile'; import { Locale as AntdLocale } from 'antd/es/locale'; import { EntityDict as BaseEntityDict } from 'oak-domain/es/base-app-domain'; import { Breakpoints } from '../responsive'; import type { BasicFeatures } from '../../../features'; import type { IRouter } from '../router/types'; import { NamespaceConfigs } from '../NamespaceConfigProvider'; import type { OakTheme } from '../theme'; import type { OakIconLibraryConfig } from '../../../types/Icon'; import type { MessageHandler } from '../../../types/Message'; import 'dayjs/esm/locale/zh-cn'; export declare function OakBrowserRouter(props: { features: BasicFeatures; children: React.ReactNode; breakpoints?: Breakpoints; }): React.JSX.Element; export type WebInitializeOptions = { locales?: { dayJs?: string; antd?: AntdLocale; antdMobile?: AntdMobileConfigProviderProps['locale']; }; namespaceConfigs?: NamespaceConfigs; error?: any; format?: 'react'; renderError?: (context: { error: any; features: BasicFeatures; defaultError: React.ReactNode; }) => React.ReactNode; renderLoading?: (context: { features: BasicFeatures; appName: string; }) => React.ReactNode; oakTheme?: OakTheme; antdConfigProviderProps?: Omit; antdMobileConfigProviderProps?: Omit; iconLibraries?: OakIconLibraryConfig[]; renderProvider?: (context: { features: BasicFeatures; appName: string; children: React.ReactNode; }) => React.ReactNode; messageHandler?: MessageHandler; }; export default function initialize(features: BasicFeatures, appName: string, routers: IRouter[], locales?: WebInitializeOptions['locales'] | WebInitializeOptions, error?: any, format?: 'react'): React.JSX.Element | undefined;