import type { PreviewStoryCallback } from '@histoire/shared';
import type { ViteDevServer } from 'vite';
import type { Context } from '../context.js';
/**
 * Collects every story of the project.
 *
 * Two strategies: a real browser run (opt-in, needs Vitest installed) or the
 * hybrid vite-node execution. The collection server is left open in both cases:
 * `@vitejs/plugin-vue` is re-pointed at it for the whole bundle build, so the
 * caller closes it only once the build is over.
 */
export declare function collectStories(ctx: Context, server: ViteDevServer): Promise<void>;
/**
 * Serves the built output and invokes the plugin `previewStory` callbacks once
 * per variant (screenshot plugins and the like).
 */
export declare function renderPreviewStories(ctx: Context, previewStoryCallbacks: PreviewStoryCallback[], outputRoot?: string): Promise<void>;
//# sourceMappingURL=collect.d.ts.map