import type { Plugin, Logger } from "vite";
import type { WidgetPackageDescriptor } from "../types/widget-package-descriptor";
import { type SourceWidgetPackage } from "../widgets/authoring";
/**
 * Vite plugin bundle that serves widget manifest metadata and the builder preview.
 *
 * Returns an array of plugins:
 * 1. Manifest plugin — serves /__manifests__ (dev) and emits __manifests__.json (build)
 * 2. Builder preview plugin — serves /builder-preview with live widget editing (dev only)
 *
 * Every portal using `fluidManifestPlugin()` automatically gets the builder preview.
 */
export declare function fluidManifestPlugin(): Plugin[];
export declare function readSourceWidgetPackages(mod: Record<string, unknown>, logger?: Pick<Logger, "warn">): SourceWidgetPackage[];
export declare function manifestsToWidgetPackageDescriptors(manifests: readonly Record<string, unknown>[], options?: {
    cssUrls?: readonly string[];
    remoteEntryUrl?: string;
}): WidgetPackageDescriptor[];
//# sourceMappingURL=manifest-plugin.d.ts.map