import { Ginny } from "../types"; import type { Transformer } from "."; /** * Result of the exported default function of a .jsx or .tsx file containing a postprocessing * step for the final generated HTML. This can be used for example to minify or purge CSS considering * the final full HTML content. */ export interface WithPostprocessContent { /** The jsx/tsx vdom node. */ node: Ginny.Node | Promise; /** A postprocess function receiving the HTML of the page. */ postprocess(html: string): string | Promise; } /** The result of the exported default function of a .jsx or .tsx file. */ export type Content = Ginny.Node | Promise | WithPostprocessContent; export declare function match(filename: string): boolean; export declare const process: Transformer;