histoire
Version:
A fast story book powered by Vite
17 lines • 1.03 kB
TypeScript
import type { ServerMarkdownFile, ServerStoryFile } from '@histoire/shared';
import type { Context } from '../context.js';
/** Acyclic project file metadata accepted by the owned test worker. */
export interface TestContextFiles {
/** Collected stories without cyclic documentation links. */
storyFiles: Omit<ServerStoryFile, 'markdownFile'>[];
/** Documentation with explicit association identity instead of object links. */
markdownFiles: (Omit<ServerMarkdownFile, 'storyFile'> & {
/** Absolute registered story path restores the docs association in the child. */
storyPath?: string;
})[];
}
/** Captures Markdown lookup data alongside stories without crossing live context handles. */
export declare function captureTestContextFiles(ctx: Context): TestContextFiles;
/** Reconstructs the child-owned graph before inline Markdown transforms execute. */
export declare function restoreTestContextFiles(ctx: Context, files: TestContextFiles): void;
//# sourceMappingURL=context-transfer.d.ts.map