import type { Plugin } from 'vite'; import type { OutputAsset, OutputChunk, PreserveEntrySignaturesOption } from 'rollup'; declare type Entry = string | Record; export interface HtmlPluginOptions { /** * Adds the given favicon path to the output html * Default: `false` */ favicon?: false | string; /** * The file to write the html to. Also you can specify a subdirectory here. * Default: `index.html` */ filename?: string; /** * Accept `.[j|t]s?[x]` as input, which works like webpack input. * Default: `src/main.[j|t]s?[x]` */ input?: Entry; /** * @alias input */ entry?: Entry; /** * Pass a html-minifier options object to minify the output. * Default: `false` */ meta?: false; /** * The `webpack` require path to the template */ template?: string; /** * Allow to use a html string instead of reading from a file. * Default: `false` */ templateContent?: false | string; /** * The title to use for the generated HTML document. * Default: `Vite App` */ title?: string; /** * The publicPath use for the generates assets. * Default: `auto`. */ publicPath?: 'auto' | string; /** * Minify html using html-minifier-terser * Default: `auto`. */ minify?: 'auto' | boolean | object; /** * Enable to preserve entry singatures. https://rollupjs.org/guide/en/#preserveentrysignatures * Default: `false`. */ preserveEntrySignatures?: PreserveEntrySignaturesOption | boolean; } export declare type OutputBundleExt = (OutputAsset & { ext: string; }) | (OutputChunk & { ext: string; }); export default function htmlPlugin(userOptions?: HtmlPluginOptions): Plugin; export declare const removeHtmlEntryScript: (rootDir: string, html: string, entry: string) => string; export {};