/** * Asset Build Pipeline * * Handles building JavaScript, TypeScript, CSS, and static assets * with caching, deduplication, and content-type detection. */ import { type BunFile } from "bun"; export declare const buildCache: Record; export declare const builtAssets: Record; export declare const clientScriptsUsingReact: Set; export declare function getContentType(ext: string): string; /** * Build a client mount script (.client.tsx). * * If the client script imports from React, React is externalized and resolved * through import maps. */ export declare function buildClientScript(clientPath: string): Promise; /** * Build JavaScript/TypeScript files using Bun's bundler. */ export declare function buildScript(filePath: string, allExternal?: boolean): Promise; /** * Build CSS files with PostCSS processing. */ export declare function buildStyle(filePath: string): Promise; /** * Build route-scoped CSS. */ export declare function buildScopedStyle(filePath: string, routePattern: string): Promise; export interface CSSModuleResult { css: string; classMap: Record; cssUrl: string; } /** * Build a .module.css file: * 1. Rewrites locally-authored class selectors on the PostCSS AST * 2. Processes the rewritten source through PostCSS/Tailwind * 3. Returns processed CSS + class name mapping + built asset URL */ export declare function buildCSSModule(filePath: string): Promise; /** * Build a static asset by storing it in memory with a hashed URL. */ export declare function buildAsset(file?: BunFile): Promise; /** * @deprecated Use buildScript(), buildStyle(), or buildAsset() instead. */ export declare function asset(fileOrPath: BunFile | string): Promise; export declare function clearCaches(): void; //# sourceMappingURL=build.d.ts.map