arc-vite
Version:
Declaratively bundle and execute code specific to your users ARC and Vite.
17 lines (16 loc) • 574 B
TypeScript
import type { Node } from "domhandler";
type Serialized = ReturnType<typeof serialize>;
export type DocManifest = {
"head-prepend"?: Serialized;
head?: Serialized;
"body-prepend"?: Serialized;
body?: Serialized;
};
declare enum InjectType {
AssetAttrs = 0,
PublicPath = 1
}
export declare function generatManifest(basePath: string, html: string): DocManifest;
export declare function generateHTML(code: string): string;
declare function serialize(basePath: string, nodes: Node[], parts?: (string | InjectType)[]): (string | InjectType)[];
export {};