UNPKG

histoire

Version:

A fast story book powered by Vite

35 lines • 1.32 kB
import type { DocsContentInput, SourceContentInput } from '../mcp/project/content.js'; import type { NodeArtifact } from './artifact-reader.js'; import type { NodeCatalog } from './catalog.js'; /** Read immutable registered refs; output metadata paths are never filesystem inputs. */ export declare function createNodeContent(artifact: NodeArtifact, catalog: NodeCatalog): { /** Original documentation text preserves exact UTF-8 content and paging. */ getDocs(input: DocsContentInput): Promise<{ text: string; offset: number; nextOffset?: number; totalCharacters: number; sha256: string; projectId: string; revision: string; storyId: string; kind: "markdown" | "text"; origin: "collected" | "sibling" | "standalone"; filePath?: string; }>; /** Source can be omitted by build policy without affecting public Source panel. */ getSource(input: SourceContentInput): Promise<{ text: string; startLine: number; endLine: number; totalLines: number; nextLine?: number; sha256: string; projectId: string; revision: string; storyId: string; kind: "file" | "virtual"; filePath: string; }>; }; //# sourceMappingURL=content.d.ts.map