import type { AstroIntegration } from "astro"; import { type MinifierOptions } from "html-minifier-next"; /** * Options from * [html-minifier-next](https://www.npmjs.com/package/html-minifier-next), * extended with some options only used by the {@link htmlMinifier} * Astro integration. */ export interface HTMLMinifierOptions extends MinifierOptions { /** * This option is only used by the {@link htmlMinifier} Astro integration. * * If `true`, the HTML assets will always be overwritten with their * minified HTML, even if it would result in a larger file size than * the original. * * @default false */ alwaysWriteMinifiedHTML?: boolean; } /** * An Astro integration that minifies HTML assets using * [html-minifier-next](https://www.npmjs.com/package/html-minifier-next). * * @param options The options passed to the `minify` function of * [html-minifier-next](https://www.npmjs.com/package/html-minifier-next). * @returns The Astro integration. */ export default function htmlMinifier(options?: HTMLMinifierOptions): AstroIntegration; //# sourceMappingURL=index.d.ts.map