import type { Context } from '../context.js';
import type { CollectionSpecFile } from './types.js';
/**
 * Writes the Vitest spec files driving the browser story collection.
 *
 * One spec per story file: a failing story then fails its own spec only,
 * instead of aborting the collection of every other story.
 * @param ctx The histoire context.
 * @param runToken Token identifying this run in the collection channel.
 * @param root Directory owned by this run, where the specs are generated.
 * @param storyFiles Story files to collect, defaults to the whole context.
 * @returns The generated specs, each mapped back to the story it collects.
 */
export declare function generateCollectionSpecFiles(ctx: Context, runToken: string, root: string, storyFiles?: import("@histoire/shared").ServerStoryFile[]): Promise<CollectionSpecFile[]>;
//# sourceMappingURL=spec-files.d.ts.map