histoire
Version:
A fast story book powered by Vite
22 lines • 1.03 kB
TypeScript
import type { HistoireDocsContent, HistoireSourceAssets, HistoireSourceContent } from '@histoire/protocol';
import type { CatalogSnapshot } from '../../runtime/catalog/types.js';
/** Projects registered availability into a bounded, exact-target lazy asset inventory. */
export declare function projectEmbedAssets(snapshot: CatalogSnapshot, namespace?: 'embed' | 'local'): HistoireSourceAssets;
/** Emitted bodies omit build identity so immutable asset hashes cannot refer to themselves. */
export declare function projectEmbedContent(content: HistoireDocsContent | HistoireSourceContent): {
storyId: string;
variantId?: string;
relativePath?: string;
origin: 'sibling' | 'standalone' | 'inline' | 'collected';
format: 'html' | 'text';
body: string;
} | {
storyId: string;
variantId?: string;
relativePath?: string;
mode: 'raw' | 'dynamic';
origin: 'file' | 'virtual' | 'generated' | 'explicit' | 'slot';
language?: string;
body: string;
};
//# sourceMappingURL=content.d.ts.map