UNPKG

histoire

Version:

A fast story book powered by Vite

17 lines • 990 B
import type { HistoireDocsContent, HistoireSourceContent } from '@histoire/protocol'; import type { RuntimeCatalog } from '../catalog/publication.js'; import type { ContentReader } from './types.js'; /** Lazy content facade over a completed catalog; transport paging stays in adapters. */ export declare function createRuntimeContent(options: { root: string; catalog: Pick<RuntimeCatalog, 'current' | 'getStory'>; readText?: ContentReader; }): { /** Returns captured rendered docs or collected text without story execution. */ getDocs(storyId: string, expectedRevision?: string): Promise<HistoireDocsContent>; /** Returns exact original registered raw source with captured generation/revision. */ getSource(storyId: string, expectedRevision?: string): Promise<HistoireSourceContent>; }; /** Shared Node content service consumed by SDK/source adapters. */ export type RuntimeContent = ReturnType<typeof createRuntimeContent>; //# sourceMappingURL=service.d.ts.map