import { type BuildConfig, type Server } from "bun"; import { type FileChangeInfo } from "fs/promises"; import pqueue from "p-queue"; import { type BunDevServerConfig } from "./bunServeConfig"; /** * Create a throttled build queue to prevent excessive rebuilds * @param serverConfig - The server configuration * @returns A p-queue instance configured for throttled builds */ export declare function getThrottledBuildQueue(serverConfig: BunDevServerConfig): pqueue; export interface BuildEnvPaths { buildDestination: string; serveDestination: string; watchDestination: string; } /** * Build and notify clients about the build result * @param importerMeta - The ImportMeta object from the caller * @param finalConfig - The final server configuration * @param buildDestination - The absolute path to the output directory * @param buildCfg - The build configuration * @param bunServer - The Bun server instance * @param event - The file change event that triggered the build */ export declare function cleanBuildAndNotify(importerMeta: ImportMeta, finalConfig: BunDevServerConfig, paths: BuildEnvPaths, buildCfg: BuildConfig, bunServer: Server, event: FileChangeInfo): Promise;