/**
 * This function can be used by other plugins to wait for the build pipeline to finish before doing some work in the closeBundle hook.
 * This event is triggered *after* the build pipeline has finished all its work AND the results have been copied to their final output directory.
 */
export function waitForBuildPipelineToFinish(): Promise<void>;
export function waitForBuildPipelineCopyToFinish(): Promise<void>;
/** Runs the needle build pipeline as part of the vite build process.
 * @param {"build" | "serve"} command
 * @param {import('../types/needleConfig').needleMeta | null | undefined} config
 * @param {import('../types').userSettings} userSettings
 * @returns {import('vite').Plugin}
 */
export function needleBuildPipeline(command: "build" | "serve", config: import("../types/needleConfig").needleMeta | null | undefined, userSettings: import("../types").userSettings): import("vite").Plugin;
export type BuildPipelinePayload = {
    event?: string;
    phase?: string;
    target?: string;
    message?: string;
    level?: string;
};
