import { MinifyOptions } from "./lib/index_bg.cjs"; //#region src/minify-html.d.ts type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; type SyncInitInput = WebAssembly.Module; /** Initializes minify-html asynchronously */ declare function initMinifyHTML(input: InitInput | Promise): Promise; declare namespace initMinifyHTML { var sync: (input: SyncInitInput) => void; var promise: Promise | null; var initialized: boolean; var ready: boolean; var ensure: () => Promise; } /** Minifies UTF-8 HTML code, represented as an array of bytes. * * @param code A slice of bytes representing the source code to minify. * @param options Configuration object to adjust minification approach. * * @example * ```ts * import { minify, type MinifyOptions } from "@cf-wasm/minify/workerd"; * * const encoder = new TextEncoder(); * const decoder = new TextDecoder(); * * const code = encoder.encode("

Hello, world!

"); * const options: MinifyOptions = { * keep_comments: true * }; * * const minified = decoder.decode(minify(code, options)); // minified === "

Hello, world!" * ``` */ declare function minify(code: Uint8Array, options?: MinifyOptions): Uint8Array; declare namespace minify { var async: (code: Uint8Array, options?: MinifyOptions) => Promise>; } //#endregion export { InitInput, SyncInitInput, initMinifyHTML, minify }; //# sourceMappingURL=minify-html.d.cts.map