import { HtmlTagDescriptor, PluginOption } from 'vite'; import { Options } from 'ejs'; import historyApiFallback from 'connect-history-api-fallback'; interface InjectOptions { /** * @description Data injected into the html template */ data?: Record; /** * @description Tag description */ tags?: HtmlTagDescriptor[]; /** * @description esj options configuration */ ejsOptions?: Options; } interface PageOption { entry?: string; filename: string; template: string; inject?: InjectOptions; } declare type Pages = Record; interface PluginMultiPageOptions { /** * @description Page options */ pages?: Pages; /** * @description Page entry */ entry?: string; /** * @description Template path */ template?: string; /** * @description Inject options */ inject?: InjectOptions; /** * @description Implement path rewriting based on connect-history-api-fallback */ historyApiFallback?: historyApiFallback.Options; } declare function createPlugin(options: PluginMultiPageOptions): PluginOption; export { createPlugin as default };