import { ProxyOptions, RsbuildPlugin, RsbuildPlugins, Rspack } from '@rsbuild/core'; import { Falsy } from '@rsbuild/core/dist-types/types'; export type ConfigRoutesItemType = { component?: string; children?: ConfigRoutesItemType[]; path: string; redirect?: string; name?: string; decorator?: string; custom?: any; [key: string]: any; }; export type ConfigRouterType = { type?: 'browser' | 'hash'; base?: string; routes?: ConfigRoutesItemType[]; }; export interface GlobalSwicoConfigType { template: 'react' | 'vue'; plugins?: (RsbuildPlugin | Falsy | Promise | RsbuildPlugins)[]; publicPath?: string; console?: boolean; define?: Record; alias?: Record; proxy?: ProxyOptions[] | Record; https?: boolean; responseHeaders?: Record; copy?: Rspack.CopyRspackPluginOptions | Rspack.CopyRspackPluginOptions['patterns']; devtool?: Rspack.Configuration['devtool']; externals?: any; router?: ConfigRouterType; } export interface GlobalDataType { templateType?: GlobalSwicoConfigType['template']; projectPath: string; entryPath: string; templatePath: string; env?: 'dev' | 'prod'; customConfig: { base: Pick; dev: Pick; prod: Pick; }; } export declare const getProjectConfig: (env: GlobalDataType['env']) => Promise; export declare const handleLoadingFile: (projectPath: any, replaceIndexText: any) => Promise; export declare const handleGlobalStyleFile: (replaceIndexText: any) => any; export declare const updateIndexFileText: (envPath: any, newFileText: any) => Promise; export declare const getFormatDefineVars: (defineVarsConfigData: any) => Promise<{}>; export declare const initConfig: Omit; export declare const customLogger: import("@rsbuild/core").Logger;