import { PluginPegasusProjectOptions, IUserConfig } from './types'; export declare function getPublicPath(options: { name: string; group: string; npm?: boolean; publicPath?: string; devPublicPath?: string; }): string; export declare function getVersion(beta?: boolean): string; export declare function verifyUserConfig(userConfig: IUserConfig, options: PluginPegasusProjectOptions): void; export declare function getAbsolutePath(filepath: string): string | undefined; export declare function getAssetsForPage(files: string[], publicPath: string): { scripts: string[]; links: string[]; }; export declare function commomWriteFileSync({ filePath, content, }: { filePath: any; content: any; }): void; export declare function commomDeleteFileSync(filePath: any): void; export declare function commomReadFileSync({ filePath }: { filePath: any; }): string; export declare function commomCopyFileSync(originPath: any, targetPath: any): void; interface ISparkConfig { routeConfig: Record; prefix: string; group_dev: string; group_prod: string; } /** * 通过检查是否存在app目录对应的国家文件夹 */ export declare const handleCountryRouter: ({ route, sparkConfig }: { route: Function; sparkConfig: ISparkConfig; }) => void; export declare const getCountryFlag: (componentName: string, countrys: string[]) => string; export declare const getCountryToLangs: (country: string) => any; export declare const replaceHtmlRouter: (htmlStr: string, id: string) => string; /** * @param {string} str - meidusha string value, which you want to format * @param {Object} options * @param {boolean} options.shouldSplitWords - should split text by words, in weex enviroment * @returns {Array} * @see https://yuque.antfin-inc.com/jinwei.tang/zxuo3e/bspbgs */ export declare const formati18n: (str: string, options?: { shouldSplitWords: boolean; }) => any[]; /** * @param {string} str - string want to extract attr value from * @param {string} attrName * @returns {string} * @example * getAttrValue('href="xxx"', 'href') * => xxx * getAttrValue('id="123"', 'id') * => 123 */ export declare const getAttrValue: (str: string, attrName: string) => string | undefined; export declare const injectLangsStr: (obj: any) => string; export declare const injectLangsKeyStr: (key: any) => string; export {};