import type { Context } from '../context.js';
import type { BrowserCollectedStoryResult, CollectedStoryFile } from './types.js';
/**
 * Finalizes the stories collected in the browser. Mirrors the legacy node
 * collection diagnostics: warns (and skips) when a file registered no story,
 * and warns when it registered more than one (only the first is used).
 *
 * Exported for unit testing of the empty/multiple-result edge cases.
 * @param ctx The histoire context.
 * @param results Collection results keyed by story relative path.
 * @param options Finalization options.
 * @param options.storyFiles Story files to finalize, defaults to the whole context.
 * @param options.applyToContext Writes the collected data back onto the live
 * story file objects. Disable to leave the context untouched (see
 * {@link CollectStoriesBrowserOptions.applyToContext}).
 * @returns The finalized story files and whether each registered tests.
 */
export declare function applyCollectedStories(ctx: Context, results: Map<string, BrowserCollectedStoryResult>, options?: {
    storyFiles?: Context['storyFiles'];
    applyToContext?: boolean;
}): CollectedStoryFile[];
//# sourceMappingURL=apply.d.ts.map