export interface PreviewBuildResult {
    /** Directory containing the built preview runtime files */
    outputDir: string;
    /** Whether the build succeeded */
    success: boolean;
}
/**
 * Build the preview runtime — a small Svelte app that includes the user's
 * theme (layouts, components, CSS) — using Vite's programmatic API.
 *
 * The built output is cached by theme path hash so repeat sessions are instant.
 * If Vite or @sveltejs/vite-plugin-svelte aren't available (e.g. non-SvelteKit
 * project), returns { success: false } and the editor falls back to HTML preview.
 */
export declare function buildPreviewRuntime(themeSveltePath: string): Promise<PreviewBuildResult>;
//# sourceMappingURL=preview-builder.d.ts.map